OPEN-SOURCE SCRIPT
Updated Adaptive Bollinger Bands [jwammo12]

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.
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.
Release Notes
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 atOpen-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Software Engineer and FX, Options, Crypto Trader. Previously worked at large options market maker. If you like my scripts and would like to donate:
Bitcoin: 179ETrGo3FCVcnBV8i1uc4J8YHFRknYytz
Eth: 0x73d59A8214FD70053aF37E9700692e25de441245
Bitcoin: 179ETrGo3FCVcnBV8i1uc4J8YHFRknYytz
Eth: 0x73d59A8214FD70053aF37E9700692e25de441245
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Software Engineer and FX, Options, Crypto Trader. Previously worked at large options market maker. If you like my scripts and would like to donate:
Bitcoin: 179ETrGo3FCVcnBV8i1uc4J8YHFRknYytz
Eth: 0x73d59A8214FD70053aF37E9700692e25de441245
Bitcoin: 179ETrGo3FCVcnBV8i1uc4J8YHFRknYytz
Eth: 0x73d59A8214FD70053aF37E9700692e25de441245
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.