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 Intraday Momentum Index Reversal strategy is a mean-reversion approach built around the Intraday Momentum Index (IMI), a momentum oscillator developed by technical analyst Tushar Chande. Where a traditional Relative Strength Index (RSI) measures momentum by comparing one closing price to the next, the IMI measures it using candle bodies — the distance from the open to the close within each bar. By summing the up-bodies of bullish candles against the down-bodies of bearish candles, the IMI reads the conviction that occurs inside each session rather than the drift between settlements. This is a countertrend (reversal) trading style: it looks for moments of buying or selling exhaustion and positions for a bounce back toward a longer-term average.
The core idea is that when an oscillator built from intrabar conviction reaches an extreme, it may be flagging that one side of the market is running out of participants. The strategy is designed for ranging or gently mean-reverting conditions on liquid intraday charts, where price tends to overshoot and then snap back toward a slow moving average. It deliberately avoids fading momentum in a vacuum — every reversal signal must occur on the "correct" side of a slow trend mean, and only after the IMI has actually begun to turn back out of its extreme with a confirming candle.
As a learning tool, this strategy is well suited to traders who want to study how body-based momentum differs from close-to-close momentum, and how filters (a trend mean and a confirmation candle) can be layered onto a raw oscillator signal to reduce noise. It is best treated as an educational study of reversal mechanics rather than a turnkey system, and it should be explored first on a demo account.
How It Works
The Expert Advisor (EA) evaluates its rules once per newly closed bar, not on every tick. This keeps signals stable and avoids acting on incomplete candle data. On each new bar, the strategy computes the IMI over the last two closed bars, the value of a slow trend Exponential Moving Average (EMA), and the current Average True Range (ATR) for volatility-based risk sizing.
Entry — Long (buy) signal. The strategy signals a potential long when all of the following align:
- The last closed price is below the slow trend EMA, meaning price is stretched to the downside (a "washed-out dip").
- The IMI on the prior bar was at or below the Oversold threshold (default 30), indicating selling exhaustion.
- The IMI on the current bar has risen back above the Oversold threshold — the oscillator is turning up out of the extreme, not still falling.
- The current candle is bullish (its close is above its open), acting as a confirmation of buying interest.
Entry — Short (sell) signal. The mirror-image conditions apply for a potential short:
- The last closed price is above the slow trend EMA (a "blown-off rally").
- The IMI on the prior bar was at or above the Overbought threshold (default 70), indicating buying exhaustion.
- The IMI on the current bar has fallen back below the Overbought threshold — the oscillator is turning down out of the extreme.
- The current candle is bearish (its close is below its open), confirming selling pressure.
Position management. The EA allows only one open position per magic number at a time. If a position is already open, no new signal is acted upon; the trade is left to its stop-loss and take-profit to resolve.
Stop-loss logic. Risk is defined in volatility terms using the ATR. For a long, the stop is placed at the entry price minus StopAtrMult × ATR; for a short, it is placed at entry plus StopAtrMult × ATR. Anchoring the stop to ATR means the risk distance automatically widens in volatile conditions and tightens in quiet ones.
Take-profit logic. The target is set symmetrically with the ATR: for a long, entry plus TpAtrMult × ATR; for a short, entry minus TpAtrMult × ATR. With the default multipliers (stop 2.0, target 3.0), the strategy aims for a reward-to-risk ratio of roughly 1.5 to 1, though actual outcomes depend on market behavior and how often targets are reached versus stops.

Strategy Parameters
| Parameter | Default | Min | Max | Description |
|---|---|---|---|---|
| ImiPeriod | 14 | 5 | 40 | Number of bars used to build the Intraday Momentum Index from candle bodies. Shorter values react faster; longer values smooth the oscillator. |
| Oversold | 30 | 10 | 45 | IMI level below which the market is considered washed out. A cross back above this level arms a long setup. |
| Overbought | 70 | 55 | 90 | IMI level above which the market is considered stretched. A cross back below this level arms a short setup. |
| TrendEmaPeriod | 100 | 20 | 300 | Period of the slow trend EMA that defines the mean. Price must be on the correct side of it for a reversal signal to qualify. |
| AtrPeriod | 14 | 5 | 30 | Lookback for the Average True Range used to size the stop-loss and take-profit. |
| StopAtrMult | 2.0 | 0.5 | 5.0 | Multiple of ATR that sets the stop-loss distance from the entry price. |
| TpAtrMult | 3.0 | 0.5 | 6.0 | Multiple of ATR that sets the take-profit distance from the entry price. |
| Lots | 0.10 | 0.01 | 1.0 | Fixed trade volume in lots. Should be aligned to your account size and risk tolerance. |

Recommended Chart Settings
This strategy was designed with intraday timeframes in mind — the "Intraday" in Intraday Momentum Index is a hint at its natural home. Timeframes such as the M15, M30, or H1 on a liquid instrument (for example, a major forex pair like EUR/USD or a widely traded index CFD) provide the kind of frequent, mean-reverting swings the IMI is built to read. The default 100-period trend EMA and 14-period IMI are reasonable starting points on these charts.
Because reversal strategies depend heavily on market character, results will vary considerably across symbols, sessions, and volatility regimes. What behaves as a clean range on one instrument may trend persistently on another. Always test the specific symbol and timeframe you intend to trade before relying on any configuration.
How to Install on MetaTrader 5
- Download the .ex5 file from the link below
- Copy it to your MT5
MQL5\Expertsfolder - Restart MetaTrader 5 or refresh the Navigator panel
- Drag the EA onto a chart matching the recommended symbol and timeframe
- Configure the input parameters and enable Algo Trading
What to Consider Before Using This EA
Strengths. The IMI's body-based construction gives it a different perspective from a standard RSI — it can highlight exhaustion that close-to-close momentum overlooks, particularly on instruments with strong intrabar swings. Layering a trend-mean filter and a confirmation candle onto the raw oscillator is a thoughtful design choice: it prevents the strategy from blindly fading every extreme and instead waits for the oscillator to actually turn. Anchoring stops and targets to ATR keeps risk proportional to current volatility rather than fixed in pips.
Limitations. Like all mean-reversion methods, this approach is vulnerable to strong, sustained trends. In a powerful directional move, price can remain "overbought" or "oversold" for a long time, and fading it repeatedly can lead to a series of stop-outs. The trend-EMA filter helps but does not eliminate this risk, since price being on one side of a slow mean does not guarantee a reversal is imminent. The confirmation candle reduces false starts but also delays entries, occasionally causing the strategy to miss the sharpest part of a snap-back.
Where it may underperform. Expect weaker behavior during trending or news-driven sessions, during low-liquidity periods where bodies are erratic, and on instruments prone to gaps. The fixed lot size means position risk is not automatically scaled to account equity, so parameters should be reviewed carefully before any live use.
Risk Management Tips
Sound risk management matters more than any single indicator. Consider these general principles as part of your education:
- Position sizing: Size each trade so that a full stop-loss represents only a small, predefined slice of your account. Many educational sources suggest risking no more than 1–2% of account equity per trade.
- Respect the stop: The ATR-based stop exists to cap losses. Avoid the temptation to widen or remove it mid-trade.
- Test on a demo account first: Run the strategy on a demo or in the MT5 Strategy Tester across varied market conditions before considering any real capital.
- Understand drawdown: Even a well-designed reversal strategy will experience losing streaks. Study the potential drawdown so you are prepared for it psychologically and financially.
- Diversify assumptions: Do not rely on a single symbol, timeframe, or parameter set. Robustness across conditions is a better signal of quality than one flattering backtest.
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
- Expert Advisor: IntradayMomentumIndexReversal.ex5 (59 downloads)
- Source Code: IntradayMomentumIndexReversal.mq5 (49 downloads)
- Documentation: IntradayMomentumIndexReversal.pdf (77 downloads)