Monte Carlo Validation for EAs: What It Measures, With Real Data

By Luigi Buigues Morillo · Updated 19 November 2026

A backtest shows a single path: the trades in the exact order they happened. But that order is largely chance. A Monte Carlo simulation builds thousands of alternative paths from the same trades to answer two questions: what drawdown is reasonable to expect, and how much of the result depends on luck?

Two different techniques

Shuffling versus resampling
Shuffling (permutation)Resampling (bootstrap)
What it doesReorders the same tradesDraws trades at random, with replacement
Final resultAlways the sameChanges in every run
What it is forEstimating possible drawdowns and streaksEstimating result uncertainty and the probability of profit

How to do it with an MT5 EA

  1. Export the trade list from a period the EA did not see during optimisation (out of sample) or from a forward demo.
  2. Convert each result to R: profit divided by initial risk. That way you simulate at the fixed risk per trade you will actually use.
  3. Generate at least 1,000 paths (preferably 10,000) with a spreadsheet or a script, and compute each path's maximum drawdown and final result.
  4. Read the percentiles: the median tells you what is typical; the 95th or 99th, what you must be able to withstand.

An example with real trades

We applied it to the 242 non-duplicated trades of our $50,000 prop firm evaluation, simulating a fixed 0.5% risk per trade and 10,000 paths:

Monte Carlo on 242 real trades (mean R −0.086), 0.5% risk
MeasureResult
Maximum drawdown in the actual order12.8%
Drawdown with shuffled order: median / P95 / P9911.8% / 14.2% / 15.4%
Final result with resampling: P5 / median / P95−18.2% / −10.1% / −1.3%
Resampled paths ending positive3%

The reading is clear: with this trade list, the loss is not bad luck in the ordering. Shuffled, the drawdown barely changes because the curve falls almost continuously; resampled, only 3 in 100 paths end positive. Monte Carlo does not "rescue" a system without an edge: it confirms it. That is exactly its job.

Our own simulation from that account's MT5 report, at a hypothetical fixed risk of 0.5% per trade; the real account traded different sizes.

How to use the results

What Monte Carlo cannot do

It only recombines the past. It does not know whether the market will change regime, it does not fix overfitting (if you use the trades you optimised on, every path will be too good), and it assumes trades are independent, which is false when several EAs repeat the same entry: that is why you should count signals, not trades. Always complement it with forward testing.

Frequently asked questions

How many simulations are needed?

1,000 show the main percentiles; with 10,000 the extremes (99th percentile) are stable. More does not change the conclusion.

Can Monte Carlo save an EA with negative expectancy?

No. It measures the spread of possible outcomes; with negative expectancy, almost every simulated path ends in a loss.

Which trades should I use?

Out-of-sample trades or, better, a forward demo. Using the same trades the EA was optimised on inflates the result.

Risk warning. Leveraged Forex and CFD trading carries a high risk of losing money rapidly and is not suitable for everyone. This article is educational: it is not financial advice or an investment recommendation. Past or simulated results do not guarantee future results. Legal notice.

Start FTMO challenge →