OPEN-SOURCE SCRIPT
Range Opening (ADX)

▶ OVERVIEW
Range Opening (ADX) dynamically detects market opening ranges triggered by ADX (Average Directional Index) momentum shifts. Upon a user-defined ADX crossover or crossunder event, it builds a volume-based range box that tracks high and low prices over a fixed bar length and visualizes order flow pressure with delta volume and breakout buffer zones.
▶ RANGE TRIGGER VIA ADX CROSSOVER
The range begins when ADX crosses a custom threshold, indicating a shift in trend strength:
Users choose between ADX crossover or crossunder as the trigger.
Once triggered, the indicator starts collecting price and volume data for the specified “Range Opening Length.”
The ADX plot on the subchart is colored dynamically using a green-to-magenta gradient based on its strength.
A small label marks the ADX crossover/crossunder event visually.
▶ RANGE DEVELOPMENT BOX
While the range is forming:
Price highs and lows over the defined period are collected and stored.
A temporary gray box is drawn between the maximum high and minimum low, showing the developing range.
At each bar, delta volume is updated:
Positive if close > open
Negative if close < open
A total delta volume value is shown inside the developing box for real-time monitoring.
▶ RANGE COMPLETION & BREAKOUT LINES
Once the range completes (after the defined bar count):
The gray box is replaced with a finalized, color-coded range box.
Color Logic:
Green box if delta volume is positive (bullish bias)
Magenta box if delta is negative (bearish bias)
Two solid horizontal lines are drawn:
Top line from the range high
Bottom line from the range low
Two dashed lines are added above and below the range using ATR-based buffers, acting as buffer zones.
These lines extend until a new ADX trigger occurs, helping track future price interaction with the range.
▶ INFO PANEL & STATUS MONITORING
A compact data table appears in the top-right corner, offering quick insight:
ADX: Current value, color-coded to strength.
Threshold: User-defined trigger level.
Range Status:
Shows a green diamond when range is still forming.
Shows a magenta diamond after the range has completed.
Tooltip updates to “Developing” or “Formatted” based on stage.
▶ USAGE
Traders can use Range Opening (ADX) to:
Identify periods of strength expansion and price consolidation using ADX signals.
Track breakout potential and liquidity zones formed during opening-type setups.
Monitor delta volume to gauge buying/selling bias inside short-term ranges.
Use ATR buffer zones for breakout confirmation or fade setups.
Visually mark where the most recent structured range was defined.
▶ CONCLUSION
Range Opening (ADX) offers a systematic method to detect and monitor market ranges triggered by volatility surges. With real-time delta volume insight, persistent breakout levels, and ADX-driven logic, it serves as a versatile tool for both breakout traders and range strategists looking to capitalize on momentum-based setups.
Range Opening (ADX) dynamically detects market opening ranges triggered by ADX (Average Directional Index) momentum shifts. Upon a user-defined ADX crossover or crossunder event, it builds a volume-based range box that tracks high and low prices over a fixed bar length and visualizes order flow pressure with delta volume and breakout buffer zones.
▶ RANGE TRIGGER VIA ADX CROSSOVER
The range begins when ADX crosses a custom threshold, indicating a shift in trend strength:
Users choose between ADX crossover or crossunder as the trigger.
Once triggered, the indicator starts collecting price and volume data for the specified “Range Opening Length.”
The ADX plot on the subchart is colored dynamically using a green-to-magenta gradient based on its strength.
A small label marks the ADX crossover/crossunder event visually.
▶ RANGE DEVELOPMENT BOX
While the range is forming:
Price highs and lows over the defined period are collected and stored.
A temporary gray box is drawn between the maximum high and minimum low, showing the developing range.
At each bar, delta volume is updated:
Positive if close > open
Negative if close < open
A total delta volume value is shown inside the developing box for real-time monitoring.
▶ RANGE COMPLETION & BREAKOUT LINES
Once the range completes (after the defined bar count):
The gray box is replaced with a finalized, color-coded range box.
Color Logic:
Green box if delta volume is positive (bullish bias)
Magenta box if delta is negative (bearish bias)
Two solid horizontal lines are drawn:
Top line from the range high
Bottom line from the range low
Two dashed lines are added above and below the range using ATR-based buffers, acting as buffer zones.
These lines extend until a new ADX trigger occurs, helping track future price interaction with the range.
▶ INFO PANEL & STATUS MONITORING
A compact data table appears in the top-right corner, offering quick insight:
ADX: Current value, color-coded to strength.
Threshold: User-defined trigger level.
Range Status:
Shows a green diamond when range is still forming.
Shows a magenta diamond after the range has completed.
Tooltip updates to “Developing” or “Formatted” based on stage.
▶ USAGE
Traders can use Range Opening (ADX) to:
Identify periods of strength expansion and price consolidation using ADX signals.
Track breakout potential and liquidity zones formed during opening-type setups.
Monitor delta volume to gauge buying/selling bias inside short-term ranges.
Use ATR buffer zones for breakout confirmation or fade setups.
Visually mark where the most recent structured range was defined.
▶ CONCLUSION
Range Opening (ADX) offers a systematic method to detect and monitor market ranges triggered by volatility surges. With real-time delta volume insight, persistent breakout levels, and ADX-driven logic, it serves as a versatile tool for both breakout traders and range strategists looking to capitalize on momentum-based setups.
Скрипт с открытым кодом
В истинном духе TradingView автор этого скрипта опубликовал его с открытым исходным кодом, чтобы трейдеры могли понять, как он работает, и проверить на практике. Вы можете воспользоваться им бесплатно, но повторное использование этого кода в публикации регулируется Правилами поведения.
Отказ от ответственности
Все виды контента, которые вы можете увидеть на TradingView, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.
Скрипт с открытым кодом
В истинном духе TradingView автор этого скрипта опубликовал его с открытым исходным кодом, чтобы трейдеры могли понять, как он работает, и проверить на практике. Вы можете воспользоваться им бесплатно, но повторное использование этого кода в публикации регулируется Правилами поведения.
Отказ от ответственности
Все виды контента, которые вы можете увидеть на TradingView, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.