Momentum OscillatorsPine Script v6

ta.tsi()True Strength Index

The True Strength Index uses double smoothing of price changes to measure trend direction and identify overbought/oversold conditions.

TradingView language reference

Syntax

Syntax
ta.tsi(source, short_length, long_length) → series float

Arguments

ParameterTypeDescription
sourceseries int/floatPrice or value series (commonly close).
short_lengthsimple intShort smoothing length.
long_lengthsimple intLong smoothing length.

Returns

True Strength Index, in the range −1 to +1 when defined.

Remarks

The built-in returns a ratio, not a percentage-scaled −100 to +100 value. Match units before copying thresholds from another TSI implementation. na source observations are ignored.

Code Examples

Pine Script v6 Example
//@version=6
indicator("ta.tsi")
plot(ta.tsi(close, 13, 25))

Trading Applications

Measure trend strength with double-smoothed momentum

Identify overbought/oversold conditions

Generate signals from signal line crossovers

Detect momentum divergences for reversal trading

Related Functions

Frequently Asked Questions

ta.tsi() returns the True Strength Index: double-smoothed momentum of price changes, designed to reduce noise and highlight sustained trend pressure.

TSI normalizes double-smoothed price changes by double-smoothed absolute price changes. The built-in ratio is centered on zero; multiply by 100 only if your comparison or thresholds use percentage-scaled units.

13/25 is the example here, not a demonstrated optimum. Test on your market and timeframe; shorter pairs react faster, longer pairs are smoother.

Generate ta.tsi() Code with AI

Draft Pine Script using ta.tsi() with Pineify's AI Coding Agent, then review the arguments and test the result on your chart. Usage depends on your plan and available credits.