Intraday Momentum Index

The Intraday Momentum Index is an RSI of the moves within each period by Tushar Chande: it compares the bodies of the periods that closed above their open with the bodies of all periods over the window. It is meant for traders who care about the move from open to close rather than from close to close, which the RSI measures.

The formula for the Intraday Momentum Index starts from the gain and the loss within each period, the distance from the open to the close when the period closed above or below its open:

\[\text{Intraday Gain} = \max\left(\text{Close} - \text{Open}, 0\right)\] \[\text{Intraday Loss} = \max\left(\text{Open} - \text{Close}, 0\right)\]

The index is the share of the gains in all bodies over the last n periods, on a scale of 0 to 100:

\[\text{IMI} = \frac{100 \cdot \text{Sum}(\text{Intraday Gain}, n)}{\text{Sum}(\text{Intraday Gain}, n) + \text{Sum}(\text{Intraday Loss}, n)}\]

The Intraday Momentum Index is read like the RSI: high values mean the periods mostly closed above their open, which shows buying during the session, and low values the opposite. Gaps between one close and the next open do not count, so it can differ markedly from the RSI after a series of gaps.

Also known as: IMI, intraday momentum.

In the Finance Toolkit this is get_relative_strength_index with method="intraday", the same function as Relative Strength Index (RSI).

Example · BTCUSD, ETHUSD · 2021 to 2025

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

from financetoolkit import Toolkit

toolkit = Toolkit(
    tickers=["BTCUSD", "ETHUSD"],
    api_key="FINANCIAL_MODELING_PREP_KEY",
    start_date="2021-01-01",
    end_date="2025-12-31",
)

toolkit.technicals.get_relative_strength_index(method="intraday")

Which returns:

References

  • Paper Chande, T.S. & Kroll, S. (1994). “The New Technical Trader.” Wiley.
  • Library Referenced against TA-Lib’s IMI (Intraday Momentum Index)
Share