Blog / Strategy
Strategy

Quasimodo Divergence 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 Quasimodo Divergence Reversal is a counter-trend, reversal-style trading approach that combines the Quasimodo (QM) price pattern — also known as the "over-and-under" pattern — with RSI divergence as a momentum filter. The Relative Strength Index (RSI) is a classic oscillator that measures the speed of recent price changes on a scale from 0 to 100. This strategy uses it not as an overbought/oversold gauge, but as a way to detect when price and momentum disagree at a fresh swing extreme.

The core idea is simple to describe. In a healthy uptrend, each new higher high should be accompanied by stronger momentum. When price pushes to a higher high than the previous swing but the RSI simultaneously prints a lower high, that is a bearish divergence: the market made a new extreme, but the energy behind it faded. This "failed extension" at a fresh higher high is the classic Quasimodo short signature. The mirror image — a lower low in price paired with a higher RSI low — forms the bullish setup for a potential long.

This strategy is designed for traders who want to study reversal trading and momentum divergence in a rules-based, non-repainting format. It is best understood as a learning tool for exploring how swing structure and oscillator behaviour interact, rather than as any kind of income opportunity. If you are curious about how automated pattern detection works, or how ATR-based risk sizing is applied to reversal setups, this Quasimodo Trading Strategy offers a clear, transparent example to analyse.

How It Works

The strategy locates swing points using confirmed 5-bar fractals. A fractal is a small local peak or trough: the centre bar must be higher (or lower) than the two bars on each side. Because the centre is only evaluated after two later bars have closed, the swing is confirmed and does not repaint — it will not appear and disappear as new ticks arrive.

Each newly confirmed fractal is compared to the previous same-side fractal to check for divergence. Here is how the strategy signals:

Exit and risk logic is handled entirely with the Average True Range (ATR), a volatility measure of how far price typically moves per bar:

The MinBreakAtr requirement is important: it ensures the new swing meaningfully exceeds the previous one before a divergence qualifies. This helps filter out insignificant double-tops or double-bottoms that would otherwise generate noise.

Quasimodo divergence reversal MT5 EA
Illustrative example of the strategy’s entry and exit logic — not real trading results.

Strategy Parameters

Parameter Default Min Max Description
RsiPeriod 14 4 40 Number of bars used to calculate the RSI momentum oscillator.
MinBreakAtr 0.30 0.00 3.00 Minimum distance (in ATR multiples) a new swing must exceed the previous swing before a divergence qualifies.
AtrPeriod 14 5 50 Number of bars used to calculate the ATR volatility measure.
AtrStop 0.60 0.10 3.00 Stop-loss buffer beyond the swing extreme, expressed in ATR multiples.
RewardRisk 1.80 0.50 5.00 Take-profit distance as a multiple of the stop-loss (risk) distance.
MaxSpreadPts 100 5 400 Maximum allowable spread, in points, for a new trade to be opened.
Lots 0.10 0.01 1.00 Fixed trade volume in lots.
Magic 41018 0 9,999,999 Unique identifier so the strategy manages only its own positions.
Quasimodo divergence reversal MT5 EA — MQL5 source code

Recommended Chart Settings

This Quasimodo Divergence Reversal strategy was designed with FX major pairs and gold (XAU/USD) in mind, on the M15 to H1 timeframes. These conditions tend to produce clean, well-defined swing structure where fractal-based divergence is easier to interpret. The strategy operates on the primary chart timeframe only — it does not reference higher or lower timeframes.

Keep in mind that reversal strategies behave very differently across market regimes. A setting that produces reasonable-looking signals on one symbol or during one period may perform poorly on another. Results will vary across different market conditions, and any parameter set should be studied carefully in a testing environment before it is trusted.

How to Install on MetaTrader 5

What to Consider Before Using This EA

Every strategy has strengths and limitations, and an honest assessment matters more than optimism.

Strengths of this approach:

Known limitations:

The strategy is likely to underperform in strongly trending, low-volatility grind conditions and during erratic news-driven spikes where swing structure breaks down. It is best studied as an educational illustration of divergence-based reversal logic.

Risk Management Tips

Sound risk management is the foundation of any responsible approach to the markets, and it matters far more than the entry signal itself.

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