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!
Centered OscillatorsdetrenddetrendingdetrendingpriceoscillatorehlerehlersfilterforecastingjohnjohnehlersOscillators

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 publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


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
Also on:

Disclaimer