Inverse Bands

I'm very new to trading. I've been toying with moving averages to trigger swing trades and wanted an indicator that would swell when price moves sideways and squeeze when price is trending.

So this is the inverse of the popular Bollinger Bands indicator. It makes a very easy identifier for price breakout when paired with your favorite fast moving average. When MA falls outside the bands, it indicates an emerging trend. Still requires some curve fitting, but it is a work in progress.

I hope this isn't a direct copy of something I am not aware of.
Note di rilascio: Worked out a reliable way to invert Bol Bands across a wider price range. Still needs some curve fitting via "Length" and "X Offset" settings. In future revisions ill try to automate the fitting based on current price maybe. Until then we will have to manually fit the settings.
Note di rilascio: Squared the percentage, not totally sure it helped. Did some fine tuning with settings, and changed the label of X offset to width, because that is essentially what it does.
Script open-source

Nello spirito di condivisione promosso da TradingView, l'autore (al quale vanno i nostri ringraziamenti) ha deciso di pubblicare questo script in modalità open-source, così che chiunque possa comprenderlo e testarlo. Puoi utilizzarlo gratuitamente, ma il riutilizzo del codice è subordinato al rispetto del Regolamento. Per aggiungerlo al grafico, mettilo tra i preferiti.

Vuoi usare questo script sui tuoi grafici?