I audited MetaTrader's MACD Sample: full validation report

I audited MetaTrader's MACD Sample: full validation report

3 December 2026, 10:40
Dario Cadeddu
0
16

In my previous post, Before You Buy an EA: 10 Deal-Breakers, I listed the warning signs I look for before anyone puts money behind an Expert Advisor. This post shows the other half: what a full validation looks like when it is done properly, from start to finish, on an EA everyone can check.

I picked MACD Sample, the EA MetaQuotes ships with every MetaTrader 5 terminal. It is public, it is unmodified, and anyone can re-run every test below on their own machine.

Verdict: FAIL

With its default inputs, MACD Sample lost money on EURUSD H1 from January 2015 to November 2026 in the MetaTrader 5 Strategy Tester: profit factor 0.90, −1,618 € over 837 trades on a 10,000 € account. It failed six of the seven criteria I fixed before testing; the seventh, walk-forward, was not run. Its entries did worse than 95% of random entries that used the same exits.

#

Question

Pass threshold (fixed in advance)

Result

Outcome

P1

Is there an edge after costs?

Profit factor ≥ 1.10, EURUSD H1, full period

0.90

Fail

P2

Does it hold over time?

Profit factor > 1.00 in each 4-year block

0.96 · 0.90 · 0.82

Fail

P3

Does it work on other pairs?

Profit factor > 1.00 on at least 3 of 4 pairs

1 of 4

Fail

P4

Does re-optimising help?

Walk-forward out-of-sample profit factor ≥ 1.05

Not run

—

P5

Are the inputs on a stable plateau?

At least 60% of the 8 neighbouring settings with profit factor > 1.00

0 of 8

Fail

P6

Is it better than chance?

Beats at least 95% of random-entry runs

Beats 5%

Fail

P7

Does it survive higher costs?

Profit factor ≥ 1.00 with costs × 1.5

0.87

Fail

Under the verdict rule fixed in advance, a failed P1 alone means FAIL, so the missing walk-forward cannot change the outcome.

What was tested, and how

The claim under test: with its default inputs, the EA has a positive expectancy on EURUSD H1 after realistic costs, and that expectancy is robust.

Item

Detail

Expert Advisor

MACD Sample by MetaQuotes, shipped with every MetaTrader 5 terminal, run unmodified

Inputs

Lots 0.1, take profit 50 pips, trailing stop 30 pips, MACD open level 3, MACD close level 2, trend EMA 26. One position at a time, no initial stop loss

Platform

MetaTrader 5 Strategy Tester, IC Markets (EU) price history, account in EUR, deposit 10,000 €, leverage 1:30

Period

2 Jan 2015 – 23 Nov 2026, H1

Modelling

Test 1 and its statistics: "Every tick based on real ticks" (the tester generated ticks where real ones were missing). Pairs, parameter map and random entries: "1 minute OHLC", with the EA re-run in the same mode as the reference

Costs

The tester's historical spreads plus swaps. No commission on this account type

Periods

Block A 2015–2018, block B 2019–2022, block C 2023–Nov 2026

The default inputs date from before 2015, so the whole period is out-of-sample for them: nobody tuned these settings on this data.

Fixed before testing. The seven criteria and the verdict rule were written on 13 Nov 2026 before any test on real prices, then frozen with a fingerprint (SHA-256 7723cd73…4e5d ). Three points of execution differ from that document and are declared here: costs come from the tester's own spread history instead of a fixed table; the cost stress adds 0.55 and 1.1 pips per trade; the random-entry benchmark uses 300 runs instead of 1,000. None of them changes a threshold.

Method. The tests follow the protocol in my book Validating a Strategy Without Fooling Yourself: pre-registration, time blocks, other markets, parameter map, random-entry benchmark, cost stress and Monte Carlo risk.

Test 1: the baseline

Equity curve

Source: MetaTrader 5 Strategy Tester report, EURUSD H1, real ticks, 2 Jan 2015 – 23 Nov 2026, default inputs.

The EA closed 69.8% of its trades in profit and still lost: profit factor 0.90 with swaps, 0.93 before them. Swaps alone cost 568 €, about a third of the total loss. Only 4 of 12 calendar years ended in profit (2015, 2016, 2022 and 2024). The largest drawdown was 2,408 €, 24% of the account.

How the trade closed

Trades

Average (pips)

Total (pips)

Take profit (+50 pips)

246

+50.0

+12,292

Trailing stop

191

+7.3

+1,390

Close signal

400

−37.6

−15,020

Many small wins and fewer, much larger losses: the typical shape of an EA with no stop loss. The losses come from trades closed by the MACD signal after running against the position.

Tests 2–3: other periods and other pairs

Over time (P2). The EA lost money in all three blocks, and the most recent block was the worst.

Block

Trades

Profit factor

Net result (€)

Max drawdown (€)

A · 2015–2018

320

0.96

−261

965

B · 2019–2022

274

0.90

−545

1,582

C · 2023–Nov 2026

243

0.82

−812

1,074

Other pairs (P3). Same inputs and period, "1 minute OHLC" modelling, each pair with its own spreads and swaps. Three of four pairs lost money.

Pair

Trades

Profit factor

Net result (€)

Max equity drawdown

EURUSD

820

0.80

−3,452

37%

GBPUSD

975

0.82

−4,095

47%

USDJPY

936

0.77

−4,046

44%

AUDUSD

787

1.03

+395

9%

AUDUSD is the one positive pair, and only just: a profit factor of 1.03 is close to break-even. One winner out of four is what chance alone tends to produce, so it is not a reason to run the EA on AUDUSD. Choosing it now, after seeing the table, would be a selection made on the results.

EURUSD itself shows how much the modelling matters: profit factor 0.90 on real ticks, 0.80 on minute bars. Both are losses, but a buyer comparing reports should always ask which mode was used.

Tests 4–5: parameter map and walk-forward

Parameter map (P5). I ran the tester's full optimisation over 54 combinations of take profit and trailing stop, with the entry rules unchanged. Every combination loses money, the best reaching profit factor 0.90. All 8 settings next to the default lose too, so there is no profitable plateau to move to.

Parameter map

Source: MetaTrader 5 Strategy Tester optimisation, EURUSD H1, 1 minute OHLC, 2 Jan 2015 – 23 Nov 2026, entry rules unchanged.

Walk-forward (P4): not run. A rolling walk-forward in the tester needs a separate optimisation for every window. Since no fixed setting in the map is profitable over the whole period, and P1 already decides the verdict, it was left out of this audit.

Tests 6–7: chance, costs and risk

Better than chance (P6). I wrote a benchmark EA with MACD Sample's exits copied exactly (take profit, trailing stop and the MACD close rule) and random entries, then ran it 300 times in the tester with different seeds. The runs made 741 to 877 trades each, close to the EA's 820, half long and half short. MACD Sample averaged −4.21 € per trade; the median random run lost 1.43 €. Only 15 of the 300 random runs did worse than the EA.

Random entriesSource: MetaTrader 5 Strategy Tester, EURUSD H1, 1 minute OHLC, 2 Jan 2015 – 23 Nov 2026 · 300 runs of the random-entry benchmark EA (seeds 1–300) against MACD Sample in the same mode.

One more detail from the same runs: 21% of the random-entry runs ended in profit. A profitable backtest, on its own, says little about whether an EA has an edge.

Higher costs (P7). Adding 0.55 pips per trade (costs × 1.5) brings the profit factor to 0.87; adding 1.1 pips (× 2) brings it to 0.85. The EA loses before any extra cost, so costs are not what sinks it.

Statistics and risk (for information). On real ticks the average trade lost 1.93 €, with a t-statistic of −0.99. The bootstrap 95% interval for the average trade runs from −5.89 to +1.75 €: there is no evidence of any edge, although the loss itself is not statistically certain either. Reshuffling the order of the 837 trades 5,000 times gives a median maximum drawdown of 2,555 € and a 95th percentile of 3,395 €, a third of the account at 0.1 lot.

What this would mean for the owner

If this were a client's EA, my advice would be not to trade these inputs on a live account. The problem is the entry rule itself, not the settings or the costs.

  1. Don't tune the exits. None of the 54 take profit and trailing stop settings tested makes a profit. Spending time on exit parameters will not fix an entry that does worse than random.
  2. Rethink the entry before anything else. Entering on a MACD signal-line cross on the far side of zero, in the direction of the trend EMA, picked worse moments than chance over almost 12 years. That is the hypothesis to replace.
  3. Add a protective stop to any new version. Exits on the close signal, with no stop in place, lost 15,020 pips: more than all winning exits earned (13,682). The worst single trade lost 586 pips. A stop is a new rule, though: it must be pre-registered and tested on data not used here.
  4. Don't switch to AUDUSD. The one profitable pair was found by looking at the results, and it is barely above break-even. It needs its own test on fresh data before it means anything.

Any new version should start from a fresh pre-registration. The 2015–2026 history used here can no longer serve as an independent test for it.

Limits of this audit

  • Tick quality. The broker's real tick history covers only part of the period; the tester generated the missing ticks. Results on minute bars differ (profit factor 0.80 instead of 0.90), and both are reported.
  • Walk-forward not run. A rolling walk-forward needs dozens of separate optimisations in the tester. It was left out because the verdict is already decided by P1.
  • Random-entry benchmark. The benchmark EA keeps MACD Sample's exits exactly but enters at bar open, while MACD Sample can enter at any tick. It compares entry quality, not exact timing.
  • One broker's price history. Another feed would move individual trades, not the overall picture.
  • Scope. The verdict covers these default inputs on these markets. It is not a judgement on the MACD indicator in general, and past results do not guarantee future ones. Nothing here is investment advice.

Why this matters if you are buying an EA

MACD Sample wins almost 70% of its trades. On a screenshot of recent trades, or a short backtest, it can look perfectly fine. Only the full set of tests shows that its entries are worse than a coin flip. Most of the 10 Deal-Breakers from my previous post are visible here: no stop loss, a high win rate hiding a negative expectancy, results that depend on the tester's modelling mode, and one "good" pair that appears only after the fact.

Reproducibility. Every number comes from MetaTrader 5 Strategy Tester reports and optimisation exports, analysed with Python scripts. If you want to check any part of it — the random-entry benchmark EA, the pre-registration, the tester reports — or you would like the same validation run on an EA or indicator you are developing or thinking of buying, send me a private message here on MQL5.