talib.tsi

True Strength Index for source, smoothed by two lengths, r and s. Both are ints, and both are required.

talib.tsi(series float source, series int r, series int s) → series float
ParameterTypeRequiredDescription
sourceseries floatyesThe series the index is calculated on.
rseries intyesOne of the two smoothing lengths.
sseries intyesThe other smoothing length.

Returns series float — A series float index value.

indicator("True Strength Index")
plot(talib.tsi(close, 25, 13))

See also talib.alma · talib.atr · talib.barssince

Part of the function index.

Ready to put this into practice?
Try GoCharting Premium
Unlock advanced orderflow, market profile, options desk, and real-time data — everything you just read about, live in your charts.
Upgrade