OPEN-SOURCE SCRIPT
Bollinger Bandwidth

The bandwidth is the difference (gap) between the upper band and the lower band.
This Bandwidth indicator takes the current Width of the Bollinger Bands and compares it to the Maximum and Minimum Width of the Bands over N periods
If the calculated percentage is less than or equal to X Percent (which we will specify), then the histogram shows yellow. If the calculated percentage is greater than the X Percent, then the histogram shows Red.
This works out well to quickly see if the currency pair is ranging (Yellow) and if it has broken out of range (Red)
To have a valid trade, the bandwidth indicator must be Yellow which means prices are contained within a tight range. This give us the opportunity to be able to trade inside the band picking top and bottom of the range with the help of the Stochastic indicator.
This Bandwidth indicator takes the current Width of the Bollinger Bands and compares it to the Maximum and Minimum Width of the Bands over N periods
If the calculated percentage is less than or equal to X Percent (which we will specify), then the histogram shows yellow. If the calculated percentage is greater than the X Percent, then the histogram shows Red.
This works out well to quickly see if the currency pair is ranging (Yellow) and if it has broken out of range (Red)
To have a valid trade, the bandwidth indicator must be Yellow which means prices are contained within a tight range. This give us the opportunity to be able to trade inside the band picking top and bottom of the range with the help of the Stochastic indicator.
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.