TEMA
Summary
Triple Exponential Moving Average: a smoothed price overlay built from three successively-applied EMAs to reduce lag versus a plain EMA. Distinct from EMA3, also called "triple EMA" in the literature.
Formula
EMA1=EMA(t,period); EMA2=EMA(EMA1,period); EMA3=EMA(EMA2,period); TEMA = 3*EMA1 - 3*EMA2 + EMA3
Notes
- A period of 1 performs no smoothing: the output is a copy of the input. Allowed since 0.6.5 (issues #48/#59).
Inputs
inReal— Source price/data series
Outputs
outReal— The TEMA line
Parameters
optInTimePeriod— EMA period used for all three passes
Implementation
TA-Lib Definition: tema.c · tema.yaml
| Native | File |
|---|---|
| C | ta_TEMA.c |
| Rust | tema.rs |
| Java | Core.java |
TA-Lib is also available for Python, R and more using a wrapper.
Aliases
Triple Exponential Moving Average