OPEN-SOURCE SCRIPT
Trading Sessions with High/Low Levels

Trading Sessions with High/Low Levels
📊 Overview
This comprehensive indicator displays the three major trading sessions (Asia, London, USA) with customizable background colors and automatically tracks the high and low levels of each session. Perfect for forex, indices, and any market that operates across different time zones.
🎯 Key Features
Session Background Colors
High/Low Level Tracking
Flexible Display Options
⚙️ Configuration Options
Session Settings (Each session independently configurable)
Global Settings
🚀 How It Works
🛠️ Setup Instructions
⚠️ Important Notes
🌍 Timezone Examples
🔧 Troubleshooting
Lines not appearing?
Wrong timezone?
Too many lines?
This indicator is designed to help traders identify key levels and understand market structure across different trading sessions. Use it as part of a comprehensive trading strategy and always practice proper risk management.
📊 Overview
This comprehensive indicator displays the three major trading sessions (Asia, London, USA) with customizable background colors and automatically tracks the high and low levels of each session. Perfect for forex, indices, and any market that operates across different time zones.
🎯 Key Features
Session Background Colors
- Asia Session: Customizable red background (default: 02:00-09:00)
- London Session: Customizable green background (default: 09:00-15:00)
- USA Session: Customizable blue background (default: 15:00-23:00)
- Fully adjustable session times and colors
High/Low Level Tracking
- Automatic detection of session highs and lows
- Horizontal lines marking key levels
- Optional labels displaying exact price values
- Customizable line styles (solid, dashed, dotted)
- Adjustable line width and colors
Flexible Display Options
- Show/hide any combination of sessions
- Control number of historical sessions to display (1-21)
- Option to show only current day sessions
- Extend lines to current bar or end at session close
- Customizable label sizes and colors
⚙️ Configuration Options
Session Settings (Each session independently configurable)
- Background Color: Choose any color with transparency control
- Session Times: Fully customizable start and end times
- Line Colors: Independent colors for each session's levels
- Line Styles: Solid, dashed, or dotted lines
- Line Width: 1-5 pixel width options
- Labels: Show/hide price labels with size control
Global Settings
- UTC Timezone Adjustment: Automatically adjust for your local timezone (+/-12 to +14)
- Historical Sessions: Display 1-21 previous sessions
- Current Day Filter: Option to show only today's sessions
- Line Extension: Choose to extend lines to current bar or session end
🚀 How It Works
- Session Detection: The indicator automatically detects when each trading session begins and ends
- Level Tracking: During each active session, it continuously tracks the highest high and lowest low
- Visual Display: When a session ends, horizontal lines are drawn at the session's high and low levels
- Historical Data: Previous sessions remain visible according to your settings
🛠️ Setup Instructions
- Add to Chart: Apply the indicator to any intraday chart
- Configure Sessions: Adjust session times for your preferred market hours
- Customize Appearance: Set colors, line styles, and label preferences
- Set Timezone: Adjust UTC offset to match your local timezone
- Choose Display Options: Select how many sessions and which features to show
⚠️ Important Notes
- Intraday Only: This indicator only works on intraday timeframes (not daily, weekly, monthly)
- Session Times: Default times are in UTC format - adjust the timezone setting accordingly
- Performance: Showing many historical sessions may impact chart performance
🌍 Timezone Examples
- New York (EST): UTC -5 (winter) / UTC -4 (summer)
- London (GMT): UTC +0 (winter) / UTC +1 (summer)
- Tokyo (JST): UTC +9
- Sydney (AEDT): UTC +11
🔧 Troubleshooting
Lines not appearing?
- Check that "Show High/Low lines" is enabled for the desired sessions
- Verify session times match your market's trading hours
- Ensure you're on an intraday timeframe
Wrong timezone?
- Adjust the "UTC Time Zone Adjustment" setting
- Remember to account for daylight saving time changes
Too many lines?
- Reduce the "Number of sessions to show lines" setting
- Enable "Only show current day sessions" option
This indicator is designed to help traders identify key levels and understand market structure across different trading sessions. Use it as part of a comprehensive trading strategy and always practice proper risk management.
오픈 소스 스크립트
진정한 트레이딩뷰 정신에 따라 이 스크립트 작성자는 트레이더가 기능을 검토하고 검증할 수 있도록 오픈소스로 공개했습니다. 작성자에게 찬사를 보냅니다! 무료로 사용할 수 있지만 코드를 다시 게시할 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.
오픈 소스 스크립트
진정한 트레이딩뷰 정신에 따라 이 스크립트 작성자는 트레이더가 기능을 검토하고 검증할 수 있도록 오픈소스로 공개했습니다. 작성자에게 찬사를 보냅니다! 무료로 사용할 수 있지만 코드를 다시 게시할 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.