OPEN-SOURCE SCRIPT
Dual Bollinger Bands

Dual Bollinger Bands
Dual Bollinger Bands is an advanced volatility-based indicator that plots two independent Bollinger Band sets on the same chart, allowing traders to analyze price behavior from multiple perspectives simultaneously.
Unlike standard Bollinger Bands, this indicator lets you configure each band set separately, making it especially useful for identifying asymmetric volatility, price compression/expansion zones, and dynamic support and resistance levels.
Key Features
Two fully independent Bollinger Bands
Each band has its own length, standard deviation multiplier, and moving average type.
Different price sources
BB1 can be calculated using High prices, while BB2 can use Low prices (or any source you choose), enabling a directional volatility envelope.
Custom Moving Average types
Choose between SMA, EMA, SMMA (RMA), WMA, or VWMA for each Bollinger basis.
Offset capability
Optional forward/backward offset allows visual projection or historical alignment analysis.
Clear visual separation
Each Bollinger set uses distinct colors and shaded areas for easy interpretation.
Overlay on price chart
Designed to work directly on the main chart for contextual market analysis.
How to Use
Volatility Analysis
Observe expansions and contractions between the two Bollinger sets to identify volatility regimes.
Dynamic Support & Resistance
Upper and lower bands can act as adaptive levels where price may react or revert.
Trend Context
When price consistently respects one side of a band set, it may indicate directional strength.
Mean Reversion & Breakout Zones
Convergence between bands may suggest compression, while rapid divergence can signal breakout conditions.
Best Use Cases
Intraday and swing trading
Volatility-based strategies
Trend-following or mean-reversion systems
Crypto, Forex, Indices, and Equities
Notes
This indicator does not generate signals by itself. It is designed to be used as a contextual volatility and structure tool, ideally combined with price action, market structure, or higher-level trading frameworks.
Dual Bollinger Bands is an advanced volatility-based indicator that plots two independent Bollinger Band sets on the same chart, allowing traders to analyze price behavior from multiple perspectives simultaneously.
Unlike standard Bollinger Bands, this indicator lets you configure each band set separately, making it especially useful for identifying asymmetric volatility, price compression/expansion zones, and dynamic support and resistance levels.
Key Features
Two fully independent Bollinger Bands
Each band has its own length, standard deviation multiplier, and moving average type.
Different price sources
BB1 can be calculated using High prices, while BB2 can use Low prices (or any source you choose), enabling a directional volatility envelope.
Custom Moving Average types
Choose between SMA, EMA, SMMA (RMA), WMA, or VWMA for each Bollinger basis.
Offset capability
Optional forward/backward offset allows visual projection or historical alignment analysis.
Clear visual separation
Each Bollinger set uses distinct colors and shaded areas for easy interpretation.
Overlay on price chart
Designed to work directly on the main chart for contextual market analysis.
How to Use
Volatility Analysis
Observe expansions and contractions between the two Bollinger sets to identify volatility regimes.
Dynamic Support & Resistance
Upper and lower bands can act as adaptive levels where price may react or revert.
Trend Context
When price consistently respects one side of a band set, it may indicate directional strength.
Mean Reversion & Breakout Zones
Convergence between bands may suggest compression, while rapid divergence can signal breakout conditions.
Best Use Cases
Intraday and swing trading
Volatility-based strategies
Trend-following or mean-reversion systems
Crypto, Forex, Indices, and Equities
Notes
This indicator does not generate signals by itself. It is designed to be used as a contextual volatility and structure tool, ideally combined with price action, market structure, or higher-level trading frameworks.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.