Lipi Reference Lipi

Functions

talib.rma()

Rolling moving average of `source` over `length` bars. It is published as its own function alongside `talib.sma` and `talib.ema`, and is not a synonym for either.

Syntax

                talib.rma(series float source, series int length) → series float
              

Arguments

source required series float The series to average.
length required series int How many bars the average covers.

Return Type

series float

Example


          indicator("Running Moving Average (RMA)", overlay=true)
length = input(14, "RMA Length")
rmaValue = talib.rma(close, length)
plot(rmaValue, color=color.blue, title="RMA")