Trend / Reference
alerta.ta.rma
TradingView-compatible spelling: ta.rma, runs without warnings
Wilder's smoothing average (Relative Moving Average), the smoothing RSI and ATR are defined with. It follows Pine's recurrence: the first value is the simple average of the first length values, then alpha * source + (1 - alpha) * previous with alpha = 1 / length.
alerta.ta.rma(source, length) → series floatParameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
source | series | Yes | — | Series of values to process. |
length | int | Yes | — | Number of bars (length). |
Returns
series floatExample
alerta.ta.rma
const rmaLine = rma(close, 14)Names and aliases
Guides and navigation are localized. Built-in reference descriptions and code examples are maintained in English.