Matana Labs

Monte Carlo simulation for traders

Monte Carlo simulation for traders takes the trades from a backtest and rebuilds them thousands of times, in a different order or drawn again at random, to show the range of results and drawdowns the same strategy could have produced. In our example, 100 trades with a 9R maximum drawdown as they happened showed a drawdown of 13R or more in 5% of reshuffled orders. Plan for the bad end of that range, not for the one path your backtest happened to take.

The worked example as a fan chart: 10,000 reshuffles of the same 100 trades. Every order ends at +29R; the path and the drawdown on the way differ.
The worked example as a fan chart: 10,000 reshuffles of the same 100 trades. Every order ends at +29R; the path and the drawdown on the way differ.

Why one backtest is one path

A backtest gives you one sequence of trades. If the same trades had come in a different order, the total would be the same but the drawdown, the longest losing streak and the moment you would have given up could be very different. Monte Carlo asks: of all the paths these trades could have taken, how bad were the bad ones?

Reshuffling, resampling and noise

A worked example: 100 trades, 10,000 runs

We drew 100 trades from a simple strategy profile (45% winners, every win +2R, every loss −1R, fixed seed). As it happened: 43 winners, a total of 29R, a maximum drawdown of 9R and a longest losing streak of 6. Then we reshuffled the order 10,000 times and resampled the trades 10,000 times.

Total resultMax drawdownLongest losing streak
The backtest as it happened29R9R6
Reshuffled order: median29R (always the same)8R7
Reshuffled order: worst 5%29R (always the same)13R11
Resampled trades: 5th–95th percentile5R to 53Rup to 16R (95th)up to 11 (95th)

The original order was a fairly gentle path. Half of the reshuffled paths had a drawdown of 8R or more, and one in twenty had 13R or more, with the very same trades. Resampling shows the total itself was partly luck: the middle 90% of outcomes ranged from 5R to 53R, and 2.4% of resampled runs lost money.

Reading a fan chart

Monte Carlo results are often drawn as a fan: many equity curves, or bands for the 5th, 50th and 95th percentile at each trade. Read the lower band as “a bad but plausible run” and the middle as “typical”. If your plan, your prop firm’s limit or your nerves can’t survive the lower band, the strategy is too aggressive at this size, however good the original curve looks.

The drawdown you should expect

A common rule of thumb is to plan for at least the 95th-percentile drawdown from reshuffling, here 13R, not the 9R your backtest showed. With 1% risk per trade that is the difference between a 9% and a 13% fall: inside a prop firm’s 10% maximum loss, and outside it. Our risk of ruin calculator gives the probability of reaching a set drawdown, and the drawdown calculator shows how much you would need to gain back.

The backtest’s own order had a 9R drawdown; one reshuffle in twenty had 13R or more, with the very same trades.
The backtest’s own order had a 9R drawdown; one reshuffle in twenty had 13R or more, with the very same trades.

Losing streaks are longer than they feel

Our 100 trades include 57 losers. Put in a random order, they formed a streak of 11 or more losses in a row in one of twenty reshuffled paths, against 6 in the backtest as it happened. Most traders would stop or change the rules long before that. Knowing the streak is normal for your numbers is what lets you keep following them.

What Monte Carlo can’t fix

Monte Carlo reshapes the trades you give it. If those trades come from an overfit rule, bad fills or a period that won’t repeat, the simulation inherits the flaw and only makes it look precise. It also assumes trades are independent; real strategies have clusters of losses when the market changes. Use it after the robustness checks, not instead of them.

Updated 2026-11-19. Educational content, not financial advice.

Keep reading

See Matana Labs plans, from free

Questions

What is Monte Carlo simulation in trading?

Rebuilding a strategy’s backtest thousands of times, by reshuffling the order of trades, resampling them at random or adding noise, to see the range of drawdowns and results it could have produced.

How many Monte Carlo runs do I need?

For percentiles such as the 95th, a few thousand runs give stable numbers; we used 10,000. More runs don’t make the input trades more reliable.

What is the difference between reshuffling and resampling?

Reshuffling keeps the same trades in a different order, so the total stays the same and only the path changes. Resampling draws trades with replacement, so the total changes too and shows how much of it was luck.

What drawdown should I expect from my strategy?

More than your backtest showed. Plan for at least the 95th-percentile drawdown from reshuffling your trades; in our example that was 13R against 9R in the original order.