SMI Ergodic Indicator

The SMI Ergodic Indicator is the True Strength Index with short smoothing periods, also by William Blau, together with its signal line and the gap between the two, the SMI Ergodic Oscillator. The shorter smoothing makes it react faster than the TSI, and the oscillator shows the crossings of the indicator and its signal line as a histogram, in the way the MACD histogram shows those of the MACD.

The formula for the SMI Ergodic Indicator starts from the momentum, the change of the closing price over one period, and smooths it and its absolute value with an exponential moving average over the last r periods and then over the last s periods:

\[\text{Momentum} = \text{Close} - \text{Close}_{t-1}\] \[\text{Smoothed Momentum} = \text{EMA}(\text{EMA}(\text{Momentum}, r), s)\] \[\text{Smoothed Absolute Momentum} = \text{EMA}\left(\text{EMA}\left(\left\lvert \text{Momentum}\right\rvert, r\right), s\right)\]

The indicator is the smoothed momentum as a share of the smoothed absolute momentum, on a scale of -100 to 100:

\[\text{SMI Ergodic Indicator} = \frac{100 \cdot \text{Smoothed Momentum}}{\text{Smoothed Absolute Momentum}}\]

The signal line is the exponential moving average of the indicator over the last p periods, and the SMI Ergodic Oscillator the difference between the two:

\[\text{Signal Line} = \text{EMA}(\text{SMI Ergodic Indicator}, p)\] \[\text{SMI Ergodic Oscillator} = \text{SMI Ergodic Indicator} - \text{Signal Line}\]

The common parameters are \(r = 20\), \(s = 5\) and \(p = 5\). Blau trades the direction of the SMI Ergodic Oscillator: a turn up from below zero is a buy signal, a turn down from above zero a sell signal. With short smoothing it gives more signals than the TSI, and more false ones in a market without a trend.

Both are the double-smoothed price change as a share of the double-smoothed absolute price change.

Also known as: SMI Ergodic, SMIIO, SMI Ergodic Oscillator, ergodic oscillator.

In the Finance Toolkit this is get_true_strength_index with method="ergodic", the same function as True Strength Index (TSI).

Example · MSFT · 2024 to 2025

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

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(method="ergodic").xs("MSFT", level=1, axis="columns")

Which returns:

References

  • Paper Blau, W. (1995). “Momentum, Direction, and Divergence.” Wiley.
  • Library Referenced against pandas-ta-classic’s smi (SMI Ergodic Indicator)
Share