OPEN-SOURCE SCRIPT
Dynamic Range Deviation & Volatility Exhaustion

The Dynamic Range Deviation indicator is a high-visibility technical analysis tool designed to identify periods of extreme market expansion and potential exhaustion. Using a Standard Deviation-based framework, it highlights candles that move significantly beyond the established mean, signaling "Overbought" or "Oversold" conditions through color-coded vertical overlays.
How It Works
The script calculates a central Basis line (Mean) and applies a Standard Deviation Multiplier to create a dynamic range.
Calculation: It measures the current price against its historical volatility over a user-defined lookback period.
Red Columns: Triggered when the price closes above the upper deviation band. This indicates a bullish extension where the price is statistically "expensive," often preceding a pullback or consolidation.
Blue Columns: Triggered when the price closes below the lower deviation band. This indicates a bearish extension where the price is statistically "cheap," often signaling a potential bounce or reversal.
Key Features
Modern UI: High-contrast, transparent overlays with distinct vertical borders for easy candle counting and trend duration analysis.
Adaptive Settings: Fully customizable lookback periods and multipliers to fit both Scalping (1m-15m) and Swing Trading (4h-1W) styles.
Clarity: Includes a "Range Fill" to help traders visualize the "Value Area" vs. the "Deviation Zones."
How It Works
The script calculates a central Basis line (Mean) and applies a Standard Deviation Multiplier to create a dynamic range.
Calculation: It measures the current price against its historical volatility over a user-defined lookback period.
Red Columns: Triggered when the price closes above the upper deviation band. This indicates a bullish extension where the price is statistically "expensive," often preceding a pullback or consolidation.
Blue Columns: Triggered when the price closes below the lower deviation band. This indicates a bearish extension where the price is statistically "cheap," often signaling a potential bounce or reversal.
Key Features
Modern UI: High-contrast, transparent overlays with distinct vertical borders for easy candle counting and trend duration analysis.
Adaptive Settings: Fully customizable lookback periods and multipliers to fit both Scalping (1m-15m) and Swing Trading (4h-1W) styles.
Clarity: Includes a "Range Fill" to help traders visualize the "Value Area" vs. the "Deviation Zones."
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.