OPEN-SOURCE SCRIPT
Ehlers Detrending Filter [CC]

The Detrending Filter was created by John Ehlers and this is a complementary indicator to one of my previous scripts: https://www.tradingview.com/script/xltq6AMJ-Ehlers-NonLinear-Filter-CC/
This indicator builds upon his previous work by attempting to detrend the underlying source data that is used to calculate the final result. He was able to create a leading indicator by removing the trend data and by using his previous calculations to turn the source data into a leading indicator.
There are two ways to understand this indicator. First if the indicator is below the midline then it is in a mid to longterm downtrend and if it is above the midline then it is in a mid to longterm uptrend. Also this indicator shows great promise in predicting future trends so because of that aspect, it may give some false signals from time to time.
I have color coded everything to account for both strong signals and normal signals. Strong signals are darker in color and normal signals are lighter in color. Buy when the line turns green and sell when it turns red.
Let me know if there are any other scripts you would like to see me publish!
This indicator builds upon his previous work by attempting to detrend the underlying source data that is used to calculate the final result. He was able to create a leading indicator by removing the trend data and by using his previous calculations to turn the source data into a leading indicator.
There are two ways to understand this indicator. First if the indicator is below the midline then it is in a mid to longterm downtrend and if it is above the midline then it is in a mid to longterm uptrend. Also this indicator shows great promise in predicting future trends so because of that aspect, it may give some false signals from time to time.
I have color coded everything to account for both strong signals and normal signals. Strong signals are darker in color and normal signals are lighter in color. Buy when the line turns green and sell when it turns red.
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.
For quick access on a chart, add this script to your favorites — learn more here.
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.
For quick access on a chart, add this script to your favorites — learn more here.
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.