Inverse Fisher Transform of the RSI

Calculate the Inverse Fisher Transform of the RSI: the smoothed Relative Strength Index squeezed between -1 and 1, which makes its overbought and oversold signals clearer.

The inverse Fisher transform (the hyperbolic tangent) of Ehlers (2004) squeezes a series into the range from -1 to 1 with most values close to the edges. Applied to a rescaled and smoothed short Relative Strength Index, it turns the RSI into a nearly binary signal that switches quickly between overbought and oversold. Ehlers buys when it crosses above -0.5 and sells when it crosses below 0.5.

The formula is as follows:

\[\text{Value}\; 1 = 0.1 \cdot (\operatorname{RSI}(\text{Close},\; \text{rsi\_window}) - 50)\] \[\text{Value}\; 2 = \operatorname{WMA}(\text{Value}\; 1,\; \text{wma\_window})\] \[\text{IFT RSI} = \frac{\exp(2 \cdot \text{Value}\; 2) - 1}{\exp(2 \cdot \text{Value}\; 2) + 1} = \operatorname{tanh}(\text{Value}\; 2)\]

Ehlers uses a 5-period RSI and a 9-period weighted moving average.

Also known as: IFT RSI, IFTRSI, Inverse Fisher RSI.

Example · AAPL, MSFT · 2024 to 2025

Install the Finance Toolkit with pip install financetoolkit -U, then call get_inverse_fisher_transform_rsi:

from financetoolkit import Toolkit

toolkit = Toolkit(
    tickers=["AAPL", "MSFT"],
    api_key="FINANCIAL_MODELING_PREP_KEY",
    start_date="2024-01-01",
    end_date="2025-12-31",
)

toolkit.technicals.get_inverse_fisher_transform_rsi()

Or, with the Finance Toolkit MCP set up, ask an AI assistant such as Claude or ChatGPT:

How did the Inverse Fisher Transform of the RSI of Apple and Microsoft move in 2025?

Which returns:

Parameters

get_inverse_fisher_transform_rsi accepts the following parameters.

ParameterTypeDescriptionExample
periodstrThe time period to consider for historical data. Options are: “intraday” (intraday prices), “daily” (daily prices), “weekly” (weekly prices), “monthly” (monthly prices), “quarterly” (quarterly prices), “yearly” (yearly prices). Defaults to “daily”."weekly"
close_columnstrThe column name for closing prices in the historical data. Defaults to “Adj Close”."Close"
rsi_windowintThe number of periods of the RSI. Defaults to 5.5
wma_windowintThe number of periods of the weighted moving average of the rescaled RSI. Defaults to 9.9
roundingint | NoneThe number of decimals to round the results to. Defaults to None, which uses the rounding of the Toolkit (4 unless set otherwise).2
growthboolWhether to calculate the growth of the IFT RSI. Defaults to False.True
lagint | list[int]The lag to use for the growth calculation. Defaults to 1.4
standardizeboolWhether 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_columnsstr | list[str] | NoneThe 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

References

  • Paper Ehlers, J.F. (2004). “The Inverse Fisher Transform.” Technical Analysis of Stocks & Commodities, 22(5).
  • Library Shares similar logic as finta’s IFT_RSI
Share