Dynamic Momentum Index

The Dynamic Momentum Index is an RSI by Tushar Chande and Stanley Kroll whose period changes with the volatility. A fixed period is a compromise: short enough to react in a fast market is too nervous in a quiet one. The Dynamic Momentum Index shortens its period when the recent volatility is above its average and lengthens it when it is below, so it reacts quickly in volatile markets and stays calm in quiet ones.

The formula for the Dynamic Momentum Index starts from a volatility index: the standard deviation of the close over the last v periods, divided by its own simple moving average over the last a periods:

\[\text{Volatility Index} = \frac{\text{StdDev}(\text{Close}, v)}{\text{SMA}(\text{StdDev}(\text{Close}, v), a)}\]

The period P is the base period n divided by that index and rounded down, bounded between a shortest and a longest period:

\[P = \left\lfloor \frac{n}{\text{Volatility Index}}\right\rfloor\]

The index is an RSI over the last P changes of the close, with the gains and losses summed over those changes:

\[\text{Gain} = \max\left(\text{Close} - \text{Close}_{t-1}, 0\right)\] \[\text{Loss} = \max\left(\text{Close}_{t-1} - \text{Close}, 0\right)\] \[\text{DMI} = \frac{100 \cdot \text{Sum}(\text{Gain}, P)}{\text{Sum}(\text{Gain}, P) + \text{Sum}(\text{Loss}, P)}\]

Chande uses a base period of \(n = 14\), a 5-period standard deviation with its 10-period average, and a period between 5 and 30. The Dynamic Momentum Index is read like the RSI, but since its period shortens in volatile markets, it reaches its extremes sooner there than an RSI of fixed length.

Also known as: DYMI, Chande’s Dynamic Momentum Index, variable-term RSI.

In the Finance Toolkit this is get_relative_strength_index with method="dynamic", 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="dynamic")

Which returns:

References

  • Paper Chande, T.S. & Kroll, S. (1994). “The New Technical Trader.” Wiley.
  • Library Shares similar logic as finta’s DYMI (Dynamic Momentum Index)
Share