Single Exponential Smoothing ( ema ) does not excel in following the data when there is a trend. This situation can be improved by the introduction of a second equation with a second constant gamma . The gamma constant cant be lower than 0 and cant be greater than 1, higher values of gamma create less lag while preserving smoothness.Higher values of length ...
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).
A least squares filter using the Auto line as source, practical for noise removal without higher phase shift. Its possible to create another parameter for the auto-line length, just add a parameter Period or whatever you want. r = round(close/round)*round dev = stdev(close,Period) Hope you enjoy :)