rma
forge.tafunctionSince Forge API 1
Functionpython
forge.ta.rma(source: ArrayLike, period: int = 13) -> np.ndarrayWilder's smoothed average: seeded with the mean of the first period values.
Parameters
| Name | Type | Default |
|---|---|---|
| source | ArrayLike | |
| period | int | 13 |
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) -> NoneWilder's smoothing: a slow average seeded with the mean of the first N values.
Inputs
| Name | Type | Default | Range |
|---|---|---|---|
| source | source | close | |
| period | int | 13 | 1 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.