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
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
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.
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.
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.