Docs

ta.rma

Smooth a series with Wilder's slow average, the smoothing behind the relative strength index.

itm
ta.rma(source, length)

Wilder's moving average, alpha = 1/length, seeded with the simple average of the first full window. The smoothing inside the relative strength index and the average true range.

Parameters

A series parameter takes a value on every bar. A constant parameter must be known before the first bar, such as a number or an input.

NameKindTypeDefaultRangeDescription
sourceSeriesnumber--The series to read.
lengthConstantnumber-1 to 10000Window in observed bars.

Output

NameType
valuenumber

Warm-up and missing values

Warm-up
length bars. Names in the warm-up are this operator’s parameters.
Missing values
Returns na until length consecutive non-na observations are in the window. An na resets the accumulation.

Example

itm
ta.rma(close, 20)
itm
plot(ta.rma(close, 14), "Wilder 14")