cheatcountry

Ehlers Detrending Filter [CC]

The Detrending Filter was created by John Ehlers and this is a complementary indicator to one of my previous scripts:
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!

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
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

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.

Want to use this script on a chart?