bitjanitor

2 Length Bollinger Bands

bitjanitor Updated   
This indicator is a two length Bollinger Band implementation. It uses the Simple Moving Average, and adjusts to the period you are looking at: e.g. if you are looking at the day chart, periods are in days. If you are looking at the 5 minute chart, periods are within 5 minute increments.

The foregrounded set of bands is based on the 20 length SMA. So, in the case of the day chart, the successive bands from the middle are 1, 2, 2.5, and 3 standard deviations from the midline (which is a dotted orange line). The upper 2.5 and 3 stddev band is orange and red respectively. When the price gets up into these regions it could indicate a potential sell or short opportunity. The lower 2.5 and 3 stddev bands are colored with lime and green,when the price goes into these regions it indicates a potential buy opportunity.

The backgrounded set of bands is based on the 50 length SMA. So, in the case of the day chart, the successive bands from the middle are 1, 2, 2.5, and 3 standard deviations from the midline (which is a dotted purple line). It is intentionally more transparent so as to be seen as a slower background trend, so that the foreground bands (based on the 20 length SMA) can be interpreted within a developing context based on consideration of the slower period.

There are many other things to consider with Bollinger Bands, such as the 'squeeze' when the bands get narrow, which is often followed by a 'squeeze' up or down. It is best to consider BBs alongside other indicators (leading & lagging) and with consideration of volume in order to confirm or invalidate your thesis before making a trade.
Release Notes:
update to version 5
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

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.

Want to use this script on a chart?