tema

forge.tafunctionSince Forge API 1
Functionpython
forge.ta.tema(source: ArrayLike, period: int = 14) -> np.ndarray

Triple exponential average: 3 * E1 - 3 * E2 + E3. After a gap the cascade restarts.

Parameters

NameTypeDefault
sourceArrayLike
periodint14

Indicator: Triple exponential moving average

Classpython
forge.ta.TEMA(**inputs: Any) -> None

Exponential average with most of its lag removed.

Inputs

NameTypeDefaultRange
sourcesourceclose
periodint141 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.