Guide · Portfolios
Monte Carlo in trading: what it tells you and what it doesn't
A Monte Carlo test takes a strategy's trades and reshuffles them thousands of times. The final profit doesn't change; the path does. That way you see how far it could fall.
Why you need it
Your history is one order among many possible ones. The same trades, with the losses bunched at the start, produce a much deeper drawdown.
How to read the result
The test returns a drawdown for each simulation. They're sorted from smallest to largest.
- P50: the one in the middle; half the time it was smaller.
- P80: only 20 out of 100 simulations fell further.
- P95: 5 out of 100 went beyond it.
What it's for
To set a limit before trading. If the portfolio falls further live than its P95, what's happening no longer fits what its history would lead you to expect.
An example with figures
A portfolio with a historical maximum drawdown of $6,000. The test gives a P80 of $8,500; the P95, $11,000.
You decide in advance: past $8,500, you review; at $11,000, you switch it off.
Shuffling days or trades
There are two ways. Moving whole days keeps together what happened on the same day; shuffling individual trades splits it up, so it tends to give somewhat smaller drawdowns.
What it doesn't tell you
- It doesn't predict the future: it reshuffles the past.
- If the strategy stops working, no simulation captures it.
- With few trades, the percentiles are worth little.
How many simulations, how many trades
With 1,000 simulations the percentiles already barely move. What limits the test is the history: with fewer than 100 trades, there's little to shuffle.
One strategy or a portfolio
For a single strategy, the test tells you how far that robot could fall. In a portfolio, whole days of all its EAs are reshuffled, so it respects the days when they lose together.
P80 or P95: which to use
The P80 is a drawdown you'll see fairly often: it works as a warning. The P95 is rare: going past it means the strategy no longer behaves as it did in its history.
Using both gives you room to react before switching off.
Common mistakes
- Taking the historical maximum drawdown as the limit.
- Running the test with 30 trades.
- Moving the cap when the loss reaches it.
Frequently asked questions
What is Monte Carlo simulation in trading?
A Monte Carlo simulation is a test that reshuffles a strategy's trades thousands of times. The final profit stays the same; the path changes, so it shows how far the strategy could fall.
What does P95 mean in a Monte Carlo test?
P95 is the drawdown that wasn't exceeded in 95 out of 100 simulations. It's often used as the limit for switching off a strategy or a portfolio.
Can Monte Carlo predict how my strategy will perform?
No. A Monte Carlo test reshuffles what already happened. If the strategy loses its edge, no simulation built from its history will see it coming.