ta.tsi()
True Strength Index
The True Strength Index uses double smoothing of price changes to measure trend direction and identify overbought/oversold conditions.
Syntax
ta.tsi(source, short_length, long_length) → series floatArguments
| Parameter | Type | Description |
|---|---|---|
| source | series int/float | Price or value series (commonly close). |
| short_length | simple int | First smoothing length for price change. |
| long_length | simple int | Second smoothing length applied after the first. |
Returns
True Strength Index.
Remarks
None.
Code Examples
//@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
Frequently Asked Questions
Generate ta.tsi() Code with AI
Skip the manual coding. Use Pineify's AI Coding Agent to generate Pine Script code using ta.tsi() and other built-in functions instantly.
Related Pine Script Functions
ta.rsi() - Relative Strength Index
Learn how to use ta.rsi() in Pine Script. Syntax, parameters, code examples for the RSI momentum oscillator.
ta.ema() - Exponential Moving Average
Learn how to use ta.ema() in Pine Script. Syntax, parameters, code examples, and trading applications for the Exponential Moving Average function.
ta.dmi() - Directional Movement Index
Learn how to use ta.dmi() in Pine Script. Syntax, parameters, code examples for +DI, -DI, and ADX.
ta.cmo() - Chande Momentum Oscillator
Learn how to use ta.cmo() in Pine Script. Syntax, parameters, code examples for the Chande Momentum Oscillator.
ta.mfi() - Money Flow Index
Learn how to use ta.mfi() in Pine Script. Syntax, parameters, code examples for the volume-weighted RSI indicator.