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...
Holt Exponential Moving Average indicator script.
This indicator was originally developed by Charles C. Holt (International Journal of Forecasting 20(1):5-10, March 2004: Forecasting seasonals and trends by exponentially weighted moving averages).
I am working on this adaptive SMA. It has its pros and cons. It is a work in progress and I welcome any one that wants to add or change it. If you add or make positive changes please let me know. It is based off of daily range. Currently it is set to the open three days prior to the current open.