ta.rma
Smooth a series with Wilder's slow average, the smoothing behind the relative strength index.
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.
| Name | Kind | Type | Default | Range | Description |
|---|---|---|---|---|---|
source | Series | number | - | - | The series to read. |
length | Constant | number | - | 1 to 10000 | Window in observed bars. |
Output
| Name | Type |
|---|---|
value | number |
Warm-up and missing values
- Warm-up
lengthbars. Names in the warm-up are this operator’s parameters.- Missing values
- Returns na until
lengthconsecutive non-na observations are in the window. An na resets the accumulation.
Example
ta.rma(close, 20)plot(ta.rma(close, 14), "Wilder 14")