The Best of 200 Optimisation Passes: How Much of That Profit Factor Is Luck?

25 November 2026, 10:20
Michael Thomas Harty
0
9

The Best of 200 Optimisation Passes: How Much of That Profit Factor Is Luck?

Run 200 optimisation passes of a strategy with no edge at all, 300 trades each, and the best pass shows a profit factor of about 1.36 in the median case. It clears PF 1.30 in 91% of runs.

That is the number the Strategy Tester's optimisation report sorts to the top. Nothing in the report tells you it came from a coin flip. This post works through how big the luck effect is, how it grows with the number of passes, and what to do before you trust the winner.

All figures below come from our own simulation (fixed seed). The strategies are made up. Simplifications: every pass is independent, every loss is 1R, every win is the same size, and there are no spreads, swaps or commissions. Real passes are correlated with their neighbours, which softens the effect but does not remove it.

The setup

Each pass is 300 trades. The zero-edge strategy wins 50% of the time and wins exactly what it loses, so its true profit factor is 1.00 and its true expectancy is 0R. We draw N passes, keep the best, and repeat thousands of times.

Passes tested (N) Best PF, median Best PF, 95th pct Chance best PF ≥ 1.30 Best pass net result, median
1 1.00 1.21 1.3% +0R
10 1.19 1.34 11.8% +26R
50 1.29 1.44 45.7% +38R
200 1.36 1.50 91.3% +46R
1,000 1.46 1.59 100.0% +56R

At 1R = 1% of the account, a +46R backtest is roughly a 46% gain (before compounding) from a strategy that will make nothing. A sweep of four inputs with five values each is already 625 passes, so N = 200 to 1,000 is a normal Tuesday.

A real edge gets inflated too

Selection does not only make zero-edge strategies look good. It makes good strategies look better than they are. Take an illustrative strategy with a real but small edge: 50% win rate, 1.2R wins, 1R losses, true PF 1.20.

Passes tested (N) Best PF, median True PF
1 1.20 1.20
10 1.43 1.20
50 1.55 1.20
200 1.63 1.20

The winner of 200 passes reports 1.63. Live, it will drift back towards 1.20. Lot sizes, capital and drawdown limits set on the backtest PF are then set for a strategy that does not exist. The live result looks like the EA has "stopped working", when it was never as good as the report said.

The luck bar

The useful column is the 95th percentile of the zero-edge winner. Call it the luck bar: the profit factor that pure noise reaches 1 time in 20, given how many passes you ran.

  • 10 passes: a PF under about 1.34 is not evidence of anything.
  • 50 passes: under about 1.44.
  • 200 passes: under about 1.50.
  • 1,000 passes: under about 1.59.

These bars are for 300 trades per pass. Fewer trades per pass raises them, more lowers them. And note the bar rises with every pass you add, including the ones you ran last month and forgot.

What a forward test actually tells you

Take the zero-edge winner from 200 passes and give it 100 fresh trades. Its forward PF has a median of 1.00. It finishes below 1.00 in about 46% of runs and still prints 1.30 or better in about 9.5%. So a short forward test catches most lucky winners, but not all, and one good month does not clear a strategy.

How many forward trades are enough depends on the edge. For the illustrative 1.2R / 50% strategy above, the one-sided 95% test needs about 327 trades (same formula as our earlier post on sample size). That is the point at which the forward record alone says something.

What to do before trusting an optimisation winner

  1. Count your passes. Write down N, including discarded sweeps. Compare the winner's PF to the luck bar for that N, not to 1.00.
  2. Hold data back. Optimise on one period and test the chosen set once on a period the optimiser never saw. Testing it on the hold-out five times and keeping the best is optimising again.
  3. Prefer plateaus to peaks. If neighbouring inputs give a similar PF, the result is less likely to be one lucky draw. A lone spike surrounded by losers is the classic overfit shape.
  4. Size on the forward record, not the report. Start small, and grow size only as the live trade count approaches the number your edge needs.
  5. Expect shrinkage even when it is real. Plan capital as if the live PF will be lower than the backtest, because after selection it almost always is.

Step 4 is where most of the risk sits, because the backtest and the forward record have to be compared trade by trade for each set file. VRD Insight splits closed results and drawdown by magic number, so each optimised set can run live under its own magic and be read on its own record. It reports what each EA has done; it does not judge whether the edge is real.

Tools mentioned

VRD Insight (free): per-EA results and drawdown by magic number, to track each chosen set's forward record.
https://www.mql5.com/en/market/product/204799

VRD Quant ($69, or rent for $30 for 1 month; free demo in the Strategy Tester shows labelled sample data): bootstrap p95 drawdown and suggested capital from an EA's own closed trades, so sizing follows the forward record rather than the optimisation report. Estimates can be exceeded live.
https://www.mql5.com/en/market/product/204796

Virtual Risk Desk

Educational only. All strategies and figures in this post are simulated or illustrative, not real EAs, not a live account and not a performance claim. Simulations exclude spread, swap, commission and slippage, and assume independent passes. Past or simulated results do not predict future results.