Blog / Strategy
Strategy

Stochastic Momentum Index Reversal

Disclaimer: This article is for educational and informational purposes only. It does not constitute financial or investment advice. Trading forex and CFDs carries significant risk of loss. Past performance of any strategy — including backtests — does not guarantee future results. Never trade with money you cannot afford to lose.

What Is This Strategy?

The Stochastic Momentum Index Reversal is a counter-trend, mean-reversion swing system built around William Blau's Stochastic Momentum Index (SMI) — a refined, zero-centred relative of the classic stochastic oscillator. Where an ordinary stochastic asks "where does price sit inside its recent range, on a 0–100 scale?", the SMI asks a sharper question: "how far is the close from the centre of the recent range, after double smoothing?" It reports the answer as a value that swings roughly between −100 and +100. Because the reading is centred on zero and smoothed twice, the SMI is far less jittery than a raw stochastic, so its extreme readings tend to be more trustworthy as potential turning points.

This strategy is designed for range-bound and mean-reverting conditions rather than strong, one-directional trends. It looks for moments when momentum has become stretched to an extreme and then shows the first genuine sign of rolling over. In plain terms, it tries to fade — trade against — an over-extended move, but only after that move appears to be losing steam. That "wait for confirmation" design is deliberate: fading extremes blindly is one of the most common ways traders get run over.

As a learning tool, this EA (Expert Advisor — an automated trading program for MetaTrader 5) is a clear, self-contained example of how to combine an oscillator extreme with a signal-line crossover and volatility-scaled risk. It is best suited to students of technical analysis who want to study how mean-reversion logic is structured in code, how double smoothing changes an indicator's behaviour, and how ATR-based stops keep risk consistent across symbols and timeframes. It is not a shortcut to results — it is a framework for understanding a specific, well-defined trading idea.

How It Works

The strategy processes each newly closed bar (it never acts on the still-forming candle) and rebuilds the SMI incrementally. Here is what happens under the hood and how the signals are formed:

The strategy signals a long (buy) when:

The strategy signals a short (sell) when:

The long and short rules are exact mirrors of each other. Demanding a same-bar signal-line turn from inside the extreme zone is the whole point of the design: it screens out open-ended trends, where lone oversold/overbought fades tend to get overrun, and only acts once momentum has rolled over.

Exit, stop-loss, and take-profit logic:

stochastic momentum index MT5 EA
Illustrative example of the strategy’s entry and exit logic — not real trading results.

Strategy Parameters

Parameter Default Min Max Description
SmiLength 10 5 40 Range lookback (in bars) for the SMI's highest-High / lowest-Low window.
SmoothingPeriod 3 2 15 EMA period used for both stages of the double smoothing applied to M and D.
SignalPeriod 3 2 15 EMA period of the SMI signal line that the SMI must cross.
EntryLevel 40.0 20.0 65.0 The SMI's absolute value must exceed this (an extreme zone) before a fade is allowed.
AtrPeriod 14 7 30 ATR period used for volatility-scaled risk sizing.
AtrStopMult 1.5 0.5 5.0 Stop-loss distance as this multiple of ATR beyond the entry.
RewardRatio 1.6 0.8 4.0 Take-profit distance expressed as a multiple of the stop distance.
MaxSpreadPoints 30 1 200 Skip the trade if the current spread (in points) is wider than this.
Lots 0.10 0.01 1.00 Order volume (position size) in lots.
Magic 5271 0 9,999,999 Magic number used to identify and isolate this EA's positions.
stochastic momentum index MT5 EA — MQL5 source code

Recommended Chart Settings

This strategy was designed with a mean-reverting major currency pair (such as EURUSD or AUDUSD) or a metal in mind, on M15 to H1 timeframes, in a swing-trading style. These markets and timeframes tend to produce the kind of stretched-then-rolling-over momentum that the SMI-plus-crossover logic is built to detect.

That said, no single setting is universally optimal. The SMI's behaviour, the frequency of extreme readings, and the effectiveness of ATR-based stops all shift with the instrument and the prevailing market regime. Results will vary considerably across different symbols, timeframes, and conditions, so treat the recommended settings as a starting point for study and testing, not a fixed prescription.

How to Install on MetaTrader 5

What to Consider Before Using This EA

Like every strategy, this one has clear strengths and equally clear limitations. A balanced view matters more than a hopeful one.

Strengths of this approach:

Known limitations and where it may underperform:

The honest takeaway: this is a well-constructed illustration of a mean-reversion concept, useful for learning how such logic is built and behaves — not a guarantee of any particular outcome.

Risk Management Tips

Sound risk management matters far more than any single indicator or entry rule. As you study this strategy, keep these general principles in mind:

Risk Warning

Trading foreign exchange, CFDs, and other leveraged financial instruments involves substantial risk of loss and is not suitable for all investors. The strategies and tools discussed on this page are provided for educational purposes only and do not constitute financial advice, investment recommendations, or solicitation to trade. Always consult a qualified financial adviser before making trading decisions. Past backtest performance is not indicative of future results.

Downloads

← Back to Blog