Lipi Reference Lipi

Functions

talib.rma()

Moving average used in RSI. It is the exponentially weighted moving average with alpha = 1 / length.

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


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