OPEN-SOURCE SCRIPT

Bollinger Bands with Squeeze

This is a standard Bollinger Bands indicator with default values 20-period, 2 standard deviations. The outer bands changes color (default=blue, squeeze=red) when the Bollinger Bands go inside the Keltner Channel with default 20-period, factor 1.5. The Keltner channel itself is not displayed in order to keep the chart clean, only showing the Bollinger Bands. So with default values, the Bollinger Bands are 'blue'. When they move inside the Keltner Band values (internally determined), the Bollinger Bands turn 'red'.

This is the chart representation of what is known as the 'squeeze'. It is often that prices can 'fire' out of this squeeze zone as volatility increases (the Bollinger Bands widen). I created the indicator because after a search did not find one (that worked) where you can just place the Bands on the chart 'alone' without the Keltner channels and have it 'indicate' (change color') where prices are in a 'squeeze' zone.

As to what direction prices are likely to break out of the squeeze zone (referred to as 'fire' from), that determination is subject to the trader/chartist interpretation of other indicators and price action.
Bands and Channels

Script open-source

In pieno spirito TradingView, l'autore di questo script lo ha pubblicato open-source, in modo che i trader possano comprenderlo e verificarlo. Un saluto all'autore! È possibile utilizzarlo gratuitamente, ma il riutilizzo di questo codice in una pubblicazione è regolato dal nostro Regolamento. Per aggiungerlo al grafico, mettilo tra i preferiti.

Vuoi usare questo script sui tuoi grafici?

Declinazione di responsabilità