OPEN-SOURCE SCRIPT

Ehlers Filter

This is the Adaptive Ehlers Filter.

I had to unroll the for loops and array because TV is missing crucial data structures and data conversions (Arrays and series to integer conversion for values).

I'm in the process of releasing some scripts. This is a very old script I had. This contains volatility ranges and can be used as trading signals. You can also see how the EF moves up or down, the direction, when price is sideways, and use price breaks up and down as signals from the line.

Have fun, because I didn't making this script hahaha

NOTE: There is an issue with the script where at certain time frames it positions itself below or above. I think its due to calculations. If anyone knows the fix before I get the chance to take a look at it, please let me know.

books.google.com/books?id=_KjOT1b9bfUC&pg=PA187&lpg=PA187&dq=nonlinear+Ehlers+filter&source=bl&ots=QnDiKKVAjy&sig=t8BhO9Ya6CNjV41es0s_HeVaaPg&hl=en&sa=X&ved=2ahUKEwiZyPyPyc_dAhXcFjQIHUSmDfIQ6AEwCHoECAIQAQ
adaptiveaverageefehlerehlersfiltermovingMoving AveragesTrend AnalysisVolatility

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?

Disclaimer