OPEN-SOURCE SCRIPT

Session Coloring Bar with ICT Macro [dani]

203
The Session Coloring Bar is customizable Pine Script indicator designed to visually enhance your charts by applying unique colors to specific trading sessions or timeframes. This tool allows traders to easily identify and differentiate between macro sessions (e.g., 24-hour cycles) and custom-defined sessions (e.g., Session A, Session B), making it ideal for analyzing market activity during specific periods.

In the context of trading, the term "ICT Macro" , as discussed by Michael J. Huddleston (ICT), refers to specific timeframes or "windows" where market behavior often follows predictable patterns. Traders typically focus on the last 10 minutes of an hour and the first 10 minutes of the next hour (e.g., 0150-0210 , 0050-0110 , or 0950-1010) to identify key price movements, liquidity shifts, or market inefficiencies.

This script highlights these macro timeframes, enabling traders to visually analyze price action during these critical periods. Use this tool to support your strategy, but always combine it with your own analysis and risk management.

With this indicator, you can:
[#1] Highlight Macro Sessions : Automatically color bars based on predefined 24-hour macro sessions.
[#2] Customize Session Settings : Define up to three custom sessions (A & B) with individual start/end times, visibility toggles, and unique bar colors.
[#3] Timeframe Filtering : Hide session coloring above a specified timeframe to avoid clutter on higher timeframes.
[#4] Personal Notes : Add comments to each session for better organization and quick reference.
[#5] Dynamic Color Logic : Bars are colored based on their direction (up, down, or neutral) within the active session.


How to Use:
  • Enable/Disable Sessions :
    Use the Show Coloring toggle to enable or disable session coloring for Macro, Session A, Session B, or Session C.
  • Set Session Times :
    Define the start and end times for each session in the format HHMM-HHMM (e.g., 1600-0930 for an overnight session).
  • Choose Colors :
    Assign unique colors for upward (Bar Up) and downward (Bar Down) bars within each session.
  • Adjust Timeframe Visibility :
    Use the Hide above this TF input to specify the maximum timeframe where session coloring will be visible.
  • Add Notes :
    Use the Comment field to add personal notes or labels for each session.


Example Use Cases:
  • Overnight Sessions :
    Highlight overnight trading hours (e.g., 1600-0930) to analyze price action during low liquidity periods.
  • Asian/European/US Sessions : Define separate sessions for major trading regions to track regional market behavior.
  • Macro Analysis : Use the predefined 24-hour macro sessions to study hourly price movements across a full trading day.


Disclaimer:
  • The Session Coloring Bar is not a trading signal generator and does not predict market direction or provide buy/sell signals. Instead, it is a visualization tool designed to help you identify and analyze specific trading sessions or timeframes on your chart. By highlighting key sessions and their corresponding price movements, this indicator enables you to focus on periods of interest and make more informed trading decisions.

  • Thank you for choosing this indicator! I hope it becomes a valuable part of your trading toolkit. Remember, trading is a journey, and having the right tools can make all the difference. Whether you're a seasoned trader or just starting out, this indicator is designed to help you stay organized and focused on what matters most—price action. Happy trading, and may your charts be ever in your favor! 😊



إخلاء المسؤولية

لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.