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.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.