OPEN-SOURCE SCRIPT
Trading Sessions - BluePips

What the indicator does
A TradingView Pine Script indicator that overlays trading sessions on intraday charts and tracks session highs/lows.
Main features
Three trading sessions (all times in CST/CDT):
Asian Session: 7:00 PM - 12:00 AM (19:00-00:00)
London Session: 1:00 AM - 6:00 AM (01:00-06:00)
New York Session: 7:00 AM - 1:00 PM (07:00-13:00)
Visual elements (toggleable):
Colored boxes: highlight each active session
Session labels: show session name, price range, and average price
Open/Close lines: dashed lines at session open and close prices
Average price line: dotted line showing the average price during the session
High/Low lines: solid lines showing the session high and low
High/Low labels: "AH" (Asian High), "AL" (Asian Low), "LH" (London High), "LL" (London Low), "NH" (New York High), "NL" (New York Low)
Behavior:
During a session: box expands, lines extend, high/low update in real time
After a session ends: box and open/close lines are removed; high/low lines remain visible as reference levels
Daily reset: all elements are cleaned up at the start of each new day
Use cases
Identify session boundaries and overlaps
Track session highs/lows as support/resistance
Analyze price action during specific trading hours
Monitor session ranges and averages
Technical details
Works only on intraday timeframes (errors on daily/weekly/monthly)
Handles daylight saving time automatically via IANA timezones
Properly cleans up visual elements to prevent memory leaks
All times are in Central Standard Time (CST/CDT)
Useful for traders who want to see session-based price levels and ranges directly on their charts.
A TradingView Pine Script indicator that overlays trading sessions on intraday charts and tracks session highs/lows.
Main features
Three trading sessions (all times in CST/CDT):
Asian Session: 7:00 PM - 12:00 AM (19:00-00:00)
London Session: 1:00 AM - 6:00 AM (01:00-06:00)
New York Session: 7:00 AM - 1:00 PM (07:00-13:00)
Visual elements (toggleable):
Colored boxes: highlight each active session
Session labels: show session name, price range, and average price
Open/Close lines: dashed lines at session open and close prices
Average price line: dotted line showing the average price during the session
High/Low lines: solid lines showing the session high and low
High/Low labels: "AH" (Asian High), "AL" (Asian Low), "LH" (London High), "LL" (London Low), "NH" (New York High), "NL" (New York Low)
Behavior:
During a session: box expands, lines extend, high/low update in real time
After a session ends: box and open/close lines are removed; high/low lines remain visible as reference levels
Daily reset: all elements are cleaned up at the start of each new day
Use cases
Identify session boundaries and overlaps
Track session highs/lows as support/resistance
Analyze price action during specific trading hours
Monitor session ranges and averages
Technical details
Works only on intraday timeframes (errors on daily/weekly/monthly)
Handles daylight saving time automatically via IANA timezones
Properly cleans up visual elements to prevent memory leaks
All times are in Central Standard Time (CST/CDT)
Useful for traders who want to see session-based price levels and ranges directly on their charts.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.