OPEN-SOURCE SCRIPT

Session Color Blocks

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

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

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