OPEN-SOURCE SCRIPT
Ehlers Adaptive Bandpass Filter [CC]

The Adaptive Bandpass Filter was created by John Ehlers (Cycle Analytics For Traders pgs 153-156) and this uses his autocorrelation code to provide the adaptive lengths to use for the underlying bandpass filter. The bandpass filter is a common way in digital signal processing to filter out the underlying noise in the data. It can actually be turned into a leading indicator by changing the bw variable to a smaller amount. Since this indicator is adaptive using the cycle period, the buy and sell signals are different compared to the normal bandpass filter. Buy signals for this indicator according to Ehlers are when the line is red and the line is under the oversold line (also red) then you buy when the indicator line turns green and then you exit when the indicator line turns red and is above the overbought line. This indicator doesn't provide clear buy and sell signals in all circumstances but generally speaking buy when the indicator line turns green and sell when it turns red. Feel free to experiment with this one.
Let me know if there are any other scripts you would like to see me publish!
Let me know if there are any other scripts you would like to see me publish!
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.
I created the largest stock indicator library:
github.com/ooples/
Custom Indicator Requests:
forms.gle/ouMffZR3dQ8bSJQG7
Tips are appreciated:
paypal.me/cheatcountry
patreon.com/cheatcountry
github.com/ooples/
Custom Indicator Requests:
forms.gle/ouMffZR3dQ8bSJQG7
Tips are appreciated:
paypal.me/cheatcountry
patreon.com/cheatcountry
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.
I created the largest stock indicator library:
github.com/ooples/
Custom Indicator Requests:
forms.gle/ouMffZR3dQ8bSJQG7
Tips are appreciated:
paypal.me/cheatcountry
patreon.com/cheatcountry
github.com/ooples/
Custom Indicator Requests:
forms.gle/ouMffZR3dQ8bSJQG7
Tips are appreciated:
paypal.me/cheatcountry
patreon.com/cheatcountry
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.