Adaptive exponential moving average.
The moving average adapts based on the distance between the moving average and the current price.
Syntax: |
---|
EhlersZeroLagEma( series, emaseries, bars, lastValueOfSeries ) |
Parameter: |
Description: |
---|---|
series |
The name of the series |
emaseries |
Normal exponential moving average (ema) series that was previously calculated. This ema should use the same period and is used as a starting point for adapting the moving average. |
bars |
The number of bars over which to find the moving average |
lastValueOfSeries |
The previous value in the series |
Returns: |
---|
The zero lag exponential moving average. |
Example: |
---|
' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
Links: |
---|
See Also: |
---|
Edit Time: 9/26/2020 1:23:32 PM |
Topic ID#: 272 |