OPEN-SOURCE SCRIPT
Session Color Blocks

๐ง Purpose:
To visually highlight different market sessions โ Asia, London, Premarket (US), and New York โ using colored background blocks on the chart for better timing, context, and trade planning.
๐ Session Times Used (Eastern Time / New York Time):
Session Time (ET) Color
Asia 8:00 PM โ 3:00 AM ๐จ Yellow
London 3:00 AM โ 8:30 AM ๐ฅ Red
Premarket 8:30 AM โ 9:30 AM ๐ฆ Blue
New York 9:30 AM โ 4:00 PM ๐ฉ Green
(DST is automatically handled via "America/New_York" timezone)
โ Features:
Session colors appear only when that session is active.
Sessions are mutually exclusive, so no overlapping blocks.
Works on any symbol, especially useful for US stock/futures traders.
Auto-adjusts for daylight savings (using TradingView's IANA timezones).
๐ง Future Enhancements (Optional):
Toggle each session on/off
Add vertical lines or labels for session opens
Extend to weekends or custom sessions
To visually highlight different market sessions โ Asia, London, Premarket (US), and New York โ using colored background blocks on the chart for better timing, context, and trade planning.
๐ Session Times Used (Eastern Time / New York Time):
Session Time (ET) Color
Asia 8:00 PM โ 3:00 AM ๐จ Yellow
London 3:00 AM โ 8:30 AM ๐ฅ Red
Premarket 8:30 AM โ 9:30 AM ๐ฆ Blue
New York 9:30 AM โ 4:00 PM ๐ฉ Green
(DST is automatically handled via "America/New_York" timezone)
โ Features:
Session colors appear only when that session is active.
Sessions are mutually exclusive, so no overlapping blocks.
Works on any symbol, especially useful for US stock/futures traders.
Auto-adjusts for daylight savings (using TradingView's IANA timezones).
๐ง Future Enhancements (Optional):
Toggle each session on/off
Add vertical lines or labels for session opens
Extend to weekends or custom sessions
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.