OPEN-SOURCE SCRIPT

Session Color Blocks

219
๐Ÿง  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

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.