- exponential moving average

Moving averages, summation

SYNTAX ema( ARRAY, periods )
FUNCTION Calculates a periods exponential moving average of ARRAY
EXAMPLE ema( close, 5 )
SEE ALSO MA() function , TEMA() function , AMA() function , AMA2() function , DEMA() function , WMA() function , WILDERS() function


Nigel Rowe
rho [at] bigpond.com
2003-04-27 18:05:14
See the comments attached to DEMA for a discussion on the differences in the way EMA and others are initialised.

EMA is initialised from a simple MA of equivalent length. (For compatability with some other strange TA software.) The others are initialised from the first value.


The EMA function is used in the following formulas in AFL on-line library:

More information:

See updated/extended version on-line.