TEMA
- triple exponential moving average

Moving averages, summation
(AmiBroker 40)


SYNTAX tema( ARRAY, periods )
RETURNS ARRAY
FUNCTION Calculates triple exponentially smoothed average - TEMA. The function accepts time-variable periods.
EXAMPLE TEMA( Close, 5 )
SEE ALSO MA(), EMA(), WMA(), DEMA()

Comments:

Graham Walker
helpman [at] dodo.com.au
2005-02-18 04:51:33
//TEMA can be implemented via EMA:

Len=10;
MyTEMA = 3 * EMA(Close,len) - 3 * EMA(EMA(Close,len),Len) + EMA(EMA(EMA(Close,len),len),len);

Plot(MyTEMA,"MyTEMA",colorBlue);

// for comparison only
Plot( TEMA( Close, Len ), "Built-in TEMA", colorRed );

References:

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

More information:

See updated/extended version on-line.