jwammo12

Adaptive Bollinger Bands [jwammo12]

jwammo12 Uppdaterad   
This takes Ehler's work that dynamically finds the frequency of market cycles and applies it to the concept of Bollinger Bands.

First the dominant cycle length is found using Ehler's methods, this is then used as the length to the moving average and deviation.

I also ended up using an exponential average rather than a simple average for both the moving average center line and the sum of the squares when finding the deviation.

credit goes to LazyBear for coding Ehler's original ideas in pine, which I then used for this script.
Versionsinformation:
adds option for simple moving average. The simple moving average becomes very choppy because the period the calculation does not have the same smoothing component as exponential, but it is still interesting to look at

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?