rma

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

Wilder's smoothed average: seeded with the mean of the first period values.

Parameters

NameTypeDefault
sourceArrayLike
periodint13

Indicator: Smoothed moving average (Wilder)

Then (previous * (period - 1) + price) / period. After a gap it restarts with a new seed. Also known as smma and wilder.

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

Wilder's smoothing: a slow average seeded with the mean of the first N values.

Inputs

NameTypeDefaultRange
sourcesourceclose
periodint131 to 5000

RMA[period-1] = mean of the first period values

RMA[i] = (RMA[i-1] * (period - 1) + x[i]) / period

After a gap the average starts again with a new seed.