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!
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。