True Strength Index (TSI)
Calculate the True Strength Index (TSI) for a given price series.
The True Strength Index of Blau (1995, “Momentum, Direction, and Divergence”) smooths the one-period price change twice with Exponential Moving Averages and divides it by the same double smoothing of the absolute change. The double smoothing filters out noise while lagging less than a single long average, and the division bounds the result between -100 (every change down) and +100 (every change up).
The formula is as follows:
\[\text{Momentum} = \operatorname{Close}(t) - \operatorname{Close}(t - 1)\] \[\text{TSI} = \frac{100 \cdot \operatorname{EMA}(\operatorname{EMA}(\text{Momentum},\; \text{long\_window}),\; \text{short\_window})}{\operatorname{EMA}(\operatorname{EMA}(\left|\text{Momentum}\right|,\; \text{long\_window}),\; \text{short\_window})}\] \[\text{Signal Line} = \operatorname{EMA}(\text{TSI},\; \text{signal\_window})\]Blau smooths over 25 and then 13 periods; the 7-period signal line is the one StockCharts uses. The TSI crossing zero means the smoothed momentum has turned, crossing its signal line is the faster trigger, and readings beyond about +25 or -25 are read as overbought or oversold. Like the RSI it is on a scale of -100 to 100 rather than a decimal.
For more information, see the following sources:
- TA-Lib: TSI, the reference implementation (https://ta-lib.org/functions/tsi.html).
Also known as: TSI, double smoothed momentum.
True Strength Index (TSI) in Python or via the MCP
Install the Finance Toolkit with:
pip install financetoolkit -U
Then call get_true_strength_index as shown below.
from financetoolkit import Toolkit
toolkit = Toolkit(
tickers=["MSFT"],
api_key="FINANCIAL_MODELING_PREP_KEY",
start_date="2024-01-01",
end_date="2025-12-31",
)
toolkit.technicals.get_true_strength_index().xs("MSFT", level=1, axis="columns").tail(5)
Or, after setting up the Finance Toolkit MCP, ask:
How did the True Strength Index of Microsoft and its signal line move from 24 to 31 December 2025?
Which returns:
| Date | Signal Line | True Strength Index |
|---|---|---|
| 2025-12-24 | -12.4871 | -8.9924 |
| 2025-12-26 | -11.3039 | -7.7544 |
| 2025-12-29 | -10.1871 | -6.8369 |
| 2025-12-30 | -9.1285 | -5.9526 |
| 2025-12-31 | -8.3772 | -6.1233 |
Parameters
get_true_strength_index accepts the following parameters.
| Parameter | Type | Description | Example |
|---|---|---|---|
period | str | The time period to consider for historical data. Can be “intraday”, “daily”, “weekly”, “monthly”, “quarterly” or “yearly”. Defaults to “daily”. | "weekly" |
close_column | str | The column name for closing prices in the historical data. Defaults to “Adj Close”. | "Close" |
long_window | int | The number of periods of the first EMA of the price change. Defaults to 25. | 25 |
short_window | int | The number of periods of the second EMA. Defaults to 13. | 13 |
signal_window | int | The number of periods of the EMA of the TSI that gives the signal line. Defaults to 7. | 7 |
rounding | int | None | The number of decimals to round the results to. Defaults to None, which uses the rounding of the Toolkit (4 unless set otherwise). | 2 |
growth | bool | Whether to calculate the growth of the TSI and signal line. Defaults to False. | True |
lag | int | list[int] | The lag to use for the growth calculation. Defaults to 1. | 4 |
standardize | bool | Whether to standardize (Z-Score) the result. When combined with growth=True, standardizes the growth values instead of the raw values. Defaults to False. | True |
show_columns | str | list[str] | None | The columns to keep, a name or a list of names, matched on every column level, or the rows when no column has those names (such as the line items of a financial statement). Names that do not exist are logged, and when none exist the result is returned in full. Defaults to None, which keeps every column. | None, which keeps every column |