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 Series of values to process. length required series int Number of bars (length). Return Type
series float Example
//@lipi=2
indicator("Running Moving Average (RMA)", overlay=true)
length = input(14, "RMA Length")
rmaValue = talib.rma(close, length)
plot(rmaValue, color=color.blue, title="RMA")