OPEN-SOURCE SCRIPT

Session Color Blocks

323
🧠 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

Wyłączenie odpowiedzialności

Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.