Functions
talib.tsi()
True Strength Index for `source`, smoothed by two lengths, `r` and `s`. Both are ints, and both are required.
Syntax
talib.tsi(series float source, series int r, series int s) → series float
Arguments
source required series float The series the index is calculated on. r required series int One of the two smoothing lengths. s required series int The other smoothing 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)