OPEN-SOURCE SCRIPT
Dual Session Range Boxes with FIB Lines

█ OVERVIEW
The Dual Session Range Boxes with FIB Lines indicator is a powerful tool for identifying and visualizing Range Breakout or Inside Boxes Strategy setups with dual session tracking, customizable Fibonacci extensions, and trade zone levels. Perfect for traders who focus on session-based strategies across multiple markets.
█ FEATURES
◆ DUAL SESSION RANGES
- Range 1: Defines the Range (ORB) based on a specific time window
- Range 2: Extends the Range levels throughout a second session for trade management
- Both ranges can be independently configured with preset sessions or custom times
◆ SESSION PRESETS
- Tokyo Session (00:00 - 09:00)
- London Session (08:00 - 17:00)
- New York Session (14:00 - 21:00)
- Pre Market Session (10:00 - 15:30)
- Custom Time: Define your own session windows
◆ FIBONACCI EXTENSION LEVELS
- Automatically calculated from Range 1 High/Low
- Buy Side Levels: Projected above the range (green)
- Sell Side Levels: Projected below the range (red)
- 10 customizable Fib levels with individual on/off toggles:
- 23.6%, 38.2%, 50%, 61.8%, 78.6%, 100%, 127.2%, 161.8%, 200%, 261.8%
- Special color highlighting for key levels (50%, 100%, 200%)
- All percentage values are fully editable
◆ INSIDE TRADE ZONES
- Two horizontal lines drawn inside the Range 1 box
- Configurable percentage from High/Low (default: 10%)
- Helps identify premium/discount zones within the range
◆ LABELS & DISPLAY OPTIONS
- Show/hide price values on labels
- Show/hide percentage values on labels
- Adjustable label size (Tiny, Small, Normal, Large, Huge)
- Configurable label offset (distance above lines)
- Multiple rounding options for price display:
- 0.25 (quarter points - ideal for indices)
- 0.1 (tenth points)
- 0.01 (two decimals)
◆ STYLE CUSTOMIZATION
- Independent fill and border colors for both ranges
- Adjustable border width (1-5)
- Line style options: Solid, Dashed, Dotted
- Separate color settings for:
- Buy side Fibonacci levels
- Sell side Fibonacci levels
- Trade zone lines
- Special levels (50%, 100%, 200%)
◆ HISTORICAL DATA CONTROL
- Toggle to show/hide historical sessions
- Current session always remains visible
- Clean chart view when analyzing only the active session
█ HOW TO USE
1. Set your timezone in General settings
2. Configure Range 1 to capture your desired Opening Range period
3. Configure Range 2 to define how long levels should extend
4. Adjust Fibonacci levels based on your trading strategy
5. Use Trade Zones to identify key areas within the range
6. Toggle historical data on/off based on your analysis needs
█ USE CASES
- Opening Range Breakout (ORB) strategies
- Session-based trading (London, New York, Tokyo, Pre-Market)
- Fibonacci extension targets for breakout trades
- Identifying support/resistance from session ranges
- Multi-session analysis and confluence zones
█ NOTES
- Indicator works on timeframes lower than Daily
- All times are based on the selected timezone setting
- Range 2 only activates after Range 1 completes
- Fibonacci levels extend from Range 1 start to Range 2 end
Let me know if you like to have any enhancements.
Leave a like if you like it!
The Dual Session Range Boxes with FIB Lines indicator is a powerful tool for identifying and visualizing Range Breakout or Inside Boxes Strategy setups with dual session tracking, customizable Fibonacci extensions, and trade zone levels. Perfect for traders who focus on session-based strategies across multiple markets.
█ FEATURES
◆ DUAL SESSION RANGES
- Range 1: Defines the Range (ORB) based on a specific time window
- Range 2: Extends the Range levels throughout a second session for trade management
- Both ranges can be independently configured with preset sessions or custom times
◆ SESSION PRESETS
- Tokyo Session (00:00 - 09:00)
- London Session (08:00 - 17:00)
- New York Session (14:00 - 21:00)
- Pre Market Session (10:00 - 15:30)
- Custom Time: Define your own session windows
◆ FIBONACCI EXTENSION LEVELS
- Automatically calculated from Range 1 High/Low
- Buy Side Levels: Projected above the range (green)
- Sell Side Levels: Projected below the range (red)
- 10 customizable Fib levels with individual on/off toggles:
- 23.6%, 38.2%, 50%, 61.8%, 78.6%, 100%, 127.2%, 161.8%, 200%, 261.8%
- Special color highlighting for key levels (50%, 100%, 200%)
- All percentage values are fully editable
◆ INSIDE TRADE ZONES
- Two horizontal lines drawn inside the Range 1 box
- Configurable percentage from High/Low (default: 10%)
- Helps identify premium/discount zones within the range
◆ LABELS & DISPLAY OPTIONS
- Show/hide price values on labels
- Show/hide percentage values on labels
- Adjustable label size (Tiny, Small, Normal, Large, Huge)
- Configurable label offset (distance above lines)
- Multiple rounding options for price display:
- 0.25 (quarter points - ideal for indices)
- 0.1 (tenth points)
- 0.01 (two decimals)
◆ STYLE CUSTOMIZATION
- Independent fill and border colors for both ranges
- Adjustable border width (1-5)
- Line style options: Solid, Dashed, Dotted
- Separate color settings for:
- Buy side Fibonacci levels
- Sell side Fibonacci levels
- Trade zone lines
- Special levels (50%, 100%, 200%)
◆ HISTORICAL DATA CONTROL
- Toggle to show/hide historical sessions
- Current session always remains visible
- Clean chart view when analyzing only the active session
█ HOW TO USE
1. Set your timezone in General settings
2. Configure Range 1 to capture your desired Opening Range period
3. Configure Range 2 to define how long levels should extend
4. Adjust Fibonacci levels based on your trading strategy
5. Use Trade Zones to identify key areas within the range
6. Toggle historical data on/off based on your analysis needs
█ USE CASES
- Opening Range Breakout (ORB) strategies
- Session-based trading (London, New York, Tokyo, Pre-Market)
- Fibonacci extension targets for breakout trades
- Identifying support/resistance from session ranges
- Multi-session analysis and confluence zones
█ NOTES
- Indicator works on timeframes lower than Daily
- All times are based on the selected timezone setting
- Range 2 only activates after Range 1 completes
- Fibonacci levels extend from Range 1 start to Range 2 end
Let me know if you like to have any enhancements.
Leave a like if you like it!
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.