SThom27

Bollinger Bands w/ Squeeze Alert

SThom27 Uppdaterad   
Bollinger's "simple" explanation for a Squeeze is the lowest volatility in the last 6 months. This indicator uses a default look-back period of 125 bars to determine the lowest BandWidth. When current BandWidth drops below the lowest BandWidth of the look-back period, the background of the bands turns red. Default look-back of 125 bars is ~6 months on daily charts.

The source, length, and standard deviation for the Bollinger Bands can all be adjusted. The look-back period for the Squeeze indicator can be adjusted as well.

The image shows my Bollinger Bands w/ Squeeze Alert indicator next to someone else's Bollinger Bandwidth w/ Squeeze Alert indicator to demonstrate how it appears on the chart.
Versionsinformation:
This version adds the "complicated definition" of The Squeeze as detailed by John Bollinger.

"A more complicated definition of The Squeeze that is taught at our seminars involves Bollinger Bands on volatility itself. First plot the 20-day standard deviation of the close, or typical price. Now plot the 125-day, 1.5 standard deviation width Bollinger Bands of the standard deviation just plotted. A Squeeze is triggered when the 20-day standard deviation tags the lower band."
-Bollinger, John; Bollinger, John. Bollinger on Bollinger Bands (p. 194). McGraw-Hill Education.

It also adds an indicator for The Bulge. The Bulge is described as the HIGHEST bandwidth during the lookback period, which is set at 125 days (6 months) by default. It can be calculated using the original "simple" definition used for the original Squeeze indicator or you can add the same complicated definition that is used to calculate the complicated Squeeze.

By default, only the "simple" definition is used and the Bulge is not displayed. This allows users to continue to use the indicator as before without needing to understand the changes. However, you can choose to use the "complicated" definition or the Bulge in the settings. If you choose to use the "complicated" definition, it will still use the "simple" definition as well and it will apply the "complicated" definition to the Bulge calculations as well. You cannot use one type for the Squeeze and a different type for the Bulge.
Versionsinformation:
There was a typo that was causing the Bulge to be displayed improperly. It was showing a Bulge even as BandWidth was decreasing, which is incorrect. This has been fixed.
Versionsinformation:
Additional errors found and fixed.
Skript med en öppen källkod

I sann TradingView-anda har författaren publicerat detta skript med öppen källkod så att andra handlare kan förstå och verifiera det. Hatten av för författaren! Du kan använda det gratis men återanvändning av den här koden i en publikation regleras av våra ordningsregler. Du kan ange den som favorit för att använda den i ett diagram.

Frånsägelse av ansvar

Informationen och publikationerna är inte avsedda att vara, och utgör inte heller finansiella, investerings-, handels- eller andra typer av råd eller rekommendationer som tillhandahålls eller stöds av TradingView. Läs mer i Användarvillkoren.

Vill du använda det här skriptet i ett diagram?