Lipi Reference Lipi

Functions

talib.rsi()

Relative strength index. It is calculated using the ta.rma() of upward and downward changes of source over the last length bars.

Syntax

                talib.rsi(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("Relative Strength Index (RSI)", overlay=false)
length = input(14, "RSI Length")
rsiValue = talib.rsi(close, length)
plot(rsiValue, color=color.blue, title="RSI")
hline(70, "Overbought", color=color.red)
hline(30, "Oversold", color=color.green)