Skip to content
AlertaChartAlertaScript / docs
AlertaScript / alerta.ta.rma
On this pageSignatureParametersReturnsExample

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 float

Parameters

NameTypeRequiredDefaultDescription
sourceseriesYes—Series of values to process.
lengthintYes—Number of bars (length).

Returns

series float

Example

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.

AlertaScript

No results found.

Search by name, alias, or keyword.