Functions
talib.tsi()
True strength index. It uses moving averages of the underlying momentum of a financial instrument.
Syntax
talib.tsi(series float source, series int r, series int s) → series float
Arguments
source required series float Source series. r required series int Long length. s required series int Short length. Return Type
series float Example
indicator("True Strength Index (TSI)", overlay=false)
shortLength = input(13, "Short EMA Length")
longLength = input(25, "Long EMA Length")
tsiValue = talib.tsi(close, shortLength, longLength)
plot(tsiValue, color=color.blue, title="TSI")
hline(0, "Zero Line", color=color.gray)