tema
forge.tafunctionSince Forge API 1
Functionpython
forge.ta.tema(source: ArrayLike, period: int = 14) -> np.ndarrayTriple exponential average: 3 * E1 - 3 * E2 + E3. After a gap the cascade restarts.
Parameters
| Name | Type | Default |
|---|---|---|
| source | ArrayLike | |
| period | int | 14 |
Indicator: Triple exponential moving average
Classpython
forge.ta.TEMA(**inputs: Any) -> NoneExponential average with most of its lag removed.
Inputs
| Name | Type | Default | Range |
|---|---|---|---|
| source | source | close | |
| period | int | 14 | 1 to 5000 |
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.