Triple exponential moving average

temamoving_averagesForge API 1

Exponential average with most of its lag removed.

Inputs

NameTypeDefaultRange
sourcesourceclose
periodint141 to 5000

Outputs

NameTypeRequiredDescription
temavalueOptionalcolor theme.accent, style line, width 1
Warm-up
3 * period - 3 bars (39 at the defaults)
Repaints
No
Parity
MetaTrader 5, within 1e-12

Formula

TEMA = 3 * EMA(x) - 3 * EMA(EMA(x)) + EMA(EMA(EMA(x)))

Each average starts at the bar where the one before it is defined. After a gap the whole calculation starts again.