Skip to content
← Blog · 2026-11-28 · forex · Quasimodo · QM pattern · market structure · backtest · negative-result

We Waited for Every Quasimodo Retrace on 3 FX Pairs. Half Never Came Back.

The Quasimodo (QM) reversal waits for a failed new high, a break of structure, then a retrace to the old shoulder. We ran a published version on the 4-hour charts of EUR/USD, GBP/USD and USD/JPY for 2019 to 2021, before writing any code for a robot. 152 patterns, 30 trades, and an average of +1.62 pips before costs against 2.17 pips of cost.

Short answer

Does the Quasimodo (QM) reversal pattern work in forex?

Not on 2019 to 2021 data. On the 4-hour charts of EUR/USD, GBP/USD and USD/JPY the published rules found 152 patterns but took only 30 trades, because about half the setups never came back to the entry line. Those 30 trades averaged +1.62 pips before costs against 2.17 pips of cost, ending at -0.55 pips, and the result was too small to tell apart from zero.

THE BACKTEST FILES
Get the rules behind every verdict

The Backtest Files: the exact rules of each strategy we've put on trial, how we tested it and what the data showed. Free with your email.

We use your email to send the link to the files, and nothing else unless you tick the box. Privacy

We Waited for Every Quasimodo Retrace on 3 FX Pairs. Half Never Came Back.

The idea: a trend that overreaches and breaks

The Quasimodo, or QM, is a reversal pattern drawn on four swing points. Take the sell version. Price is rising and makes a high, the shoulder. It dips, then pushes to a higher high, the head. Then it drops below the last low before the head. That drop is the break of structure, the same phrase smart-money traders use.

The story goes like this. Buyers who chased the new high are now trapped. When price climbs back to the old shoulder, the QM line, they get out near break-even and fresh sellers step in. So you sell at the shoulder and the fall carries on. The buy version is the mirror image.

The version we tested comes from an MQL5 article, Automating Trading Strategies in MQL5 (Part 49): The Quasimodo (QM) Reversal Pattern, which turns the pattern into a trading robot.

The rules, as the article codes them

  • Swing points: a bar is a swing high if no bar within 5 bars on either side has a higher or equal high. Mirror that for swing lows.
  • The pattern (sell): shoulder high, then a low, then a head above the shoulder, then a break below that low. The low must sit under the shoulder.
  • The trend before it: the shoulder must be higher than the swing high before it, so price was climbing into the pattern.
  • Entry: wait for a bar to close back at the shoulder level or beyond it, then sell at the next bar's open.
  • Cancel if a bar closes past the head, or if 30 bars pass with no retrace.
  • Stop: 2 pips beyond the head, or 1 times the average bar range (ATR 14) from the entry, whichever is farther.
  • Target: twice the stop distance.
  • Break-even: once the trade is up by its stop distance, the stop moves to the entry plus half a pip.
  • One trade at a time per pair, risking 0.5% of the account each time.

The article doesn't say which market or chart the robot is for, and it gives no result numbers. Its backtest is shown only as an image. So there is no claimed win rate to check here. The question is whether the rules make money.

The market and the chart were our call, made before seeing any results. We picked the 4-hour chart on EUR/USD, GBP/USD and USD/JPY. On that chart the stop is wide (43.2 pips on average in this test), so a cost of 2.17 pips is a small slice of it. On a 5-minute gold chart, the article author's usual market, costs would eat a far bigger share of each stop.

What we measured

  • Markets: EUR/USD, GBP/USD and USD/JPY, Dukascopy one-minute data built into 4-hour bars. The headline is all three pairs together.
  • Period: 2019 to 2021. These are our in-sample years, the ones we use to check ideas. We read nothing from 2022 onwards.
  • Fills: entry at the next 4-hour bar's open. Stops and targets are followed minute by minute. Fills that would land on the weekend wait for Monday's open.
  • The cost of one trade: 2.17 pips on average. That is 0.65 pips of spread (the data's own spread at the time of the trade), 0.71 pips of commission ($7 per lot for the round trip) and 0.81 pips of overnight fees. The trades stayed open for 2.1 days on average, so the overnight fee matters here.

Our rule at this stage: if the average trade before costs doesn't beat the cost, or there are too few trades to judge, we stop and don't build the robot.

First finding: the pattern is rare, and half the time price never comes back

Quasimodo setups on EUR/USD, GBP/USD and USD/JPY, 4-hour chart, 2019 to 2021: patterns found, setups waiting for the retrace, setups that expired, setups cancelled when the head broke, and trades taken.Quasimodo setups on EUR/USD, GBP/USD and USD/JPY, 4-hour chart, 2019 to 2021: patterns found, setups waiting for the retrace, setups that expired, setups cancelled when the head broke, and trades taken.

In three years on three pairs the rules found 152 Quasimodo patterns. 138 of them passed every check and set up a waiting order at the shoulder.

Then most of them never traded:

  • 71 expired. Price did not come back to the shoulder within 30 bars, about five trading days.
  • 20 were cancelled because price closed past the head first.
  • The rest were replaced by a newer pattern on the same pair, came up during the warm-up before the test began, or were not filled.

That leaves 30 trades in three years, about 10 a year across all three pairs. We needed at least 150 in these years, and 30 a year, to judge a rule. This one fell well short of both.

So the trade in the textbook picture, where price breaks structure and then politely returns to the shoulder, happened in a minority of cases. In about half of the setups the move just kept going without a retrace.

The result: a small plus that is mostly noise

Quasimodo retrace entry on EUR/USD, GBP/USD and USD/JPY, 4-hour chart, 2019 to 2021: average pips per trade before costs, by year and for all 30 trades. The last bar is the average cost of one trade.Quasimodo retrace entry on EUR/USD, GBP/USD and USD/JPY, 4-hour chart, 2019 to 2021: average pips per trade before costs, by year and for all 30 trades. The last bar is the average cost of one trade.

TradesAverage pips, before costsWinnersCostAfter costs
All30+1.6253%2.17-0.55
201914-2.9743%2.39-5.36
20209+13.1967%1.90+11.29
20217-4.0957%2.07-6.16

Before costs, the 30 trades averaged +1.62 pips. The cost was 2.17 pips, so the average trade ended at -0.55 pips. Two of the three years were below zero before any cost. All of the plus came from 9 trades in 2020.

The exits: 9 trades hit the target for +638.1 pips, 14 hit the stop for -593.1 pips, and 7 closed at break-even for +3.5 pips.

By pair, GBP/USD averaged +12.81 pips before costs on 12 trades. EUR/USD averaged -5.34 pips on 14 trades and USD/JPY -7.60 pips on 4. Buys averaged +6.73 pips and sells -3.50.

Counted per $100 risked, it looks better. Then look at the noise

The robot sizes every trade by its stop, so it risks the same amount each time whatever the stop distance. Counted that way, the picture is kinder. For every $100 risked, the average trade made +$13.65 before costs, and the costs came to about $6.72.

Pips and dollars disagree because the stops were different sizes. The average stop was 43.2 pips, but some of the losers had much wider stops than the winners. A 108-pip loss on EUR/USD in 2020 cost a lot of pips but the same dollars as a 14.15-pip loss on EUR/USD in 2019.

The bigger problem is that 30 trades can't support that $13.65. The usual range of noise on an average of 30 trades this varied is about $23.80 either side. So the result can't be told apart from zero. Take away the two best trades of the 30 and it falls to +$0.34 per $100 risked, and -7.87 pips a trade.

A second count, filled like a broker

A second script, sharing no code with the first, found the same 30 trades and the same +1.62 pips. It also ran the test with buys at the ask price and sells at the bid. That count came out at +1.61 pips after the spread, and +0.09 pips after commission and overnight fees. Nine hundredths of a pip a trade, on 30 trades. We judged on the first count, the less flattering of the two.

Other settings: no fix, just smaller samples

We also tried the main variations. None of them reached 150 trades.

SettingTradesAverage pips, before costs
Article's settings30+1.62
Swing points 3 bars each side52+5.44
Swing points 4 bars each side38+15.38
Swing points 6 bars each side24-1.64
Swing points 8 bars each side16+35.35
No trend check before the pattern63+2.95
Stricter trend check26-4.13
Target 1 times the stop30+3.68
Target 3 times the stop30+4.59
Wait 10 bars instead of 3019+3.35

The 4-bar and 8-bar settings look large, but they rest on 38 and 16 trades, and 2021 was negative in both. Picking one of them now would just be picking the luckiest row of the table. The largest sample, 63 trades with no trend check, averaged +2.95 pips, not far above the 2.17-pip cost.

What this means

The Quasimodo is a neat story, and you can find a clean one on almost any chart. What the count shows is how rarely the full story plays out. On three of the most traded pairs, over three years, the rules found 152 patterns. In about half of the setups price never came back to the shoulder at all, and the 30 trades that did fill made too little to tell from luck.

That fits what we found on the other "trapped traders" trades. The Turtle Soup sweep fade on gold, the London-open liquidity grab on GBP/USD and the ICT Silver Bullet all rest on the idea that a failed move traps one side. None of them has paid for its costs yet.

We stopped here and did not build the robot.

The limits of this test

  • Three years, 2019 to 2021, and only 30 trades. We did not test 2022 onwards, because the rule didn't trade often enough on the earlier years to judge it.
  • The three pairs and the 4-hour chart were our choice. The article names neither. A faster chart would trade more often, but the same costs would then take a much larger bite of each stop. We did not switch charts after seeing the result.
  • We tested the article's direct entry only. Its option to wait for a rejection candle at the shoulder, its trailing stop and its partial close were not measured.
  • The 2-pip stop buffer is our reading of the article's 200 points on a 5-digit forex quote. On the 4-hour chart the ATR stop is usually the wider one, so this rarely matters.

Which strategy should we test next? Tell us in the comments on our videos, or send it through the contact page.

THE BACKTEST FILES
Get every rulebook, free

The exact rules of every strategy we've put on trial, how we tested each one, and what the data showed. 27 case files so far, free with your email.

We use your email to send the link to the files, and nothing else unless you tick the box. Privacy

STRATEGY AUDIT
Have a strategy of your own? Get it tested the same way.

Send us your rules or your MT5 EA. We run them through the same tests as this post, with real broker costs and data the strategy has never seen, and give you a plain verdict.