A backtest gives you one history: the exact order in which your trades happened. If the same trades had arrived in another order, the equity curve and the worst drawdown would look different, even though the total result is identical. A Monte Carlo simulation shuffles the trades many times and shows the range of paths that were possible, so you can plan for bad luck instead of assuming the lucky path you got.
What the simulation does
You start with a list of trade results, ideally in R multiples, where 1R is the amount you risked. Then you shuffle the list into a random order, build the equity curve for that order, and record the maximum drawdown and the longest losing streak. Repeat this thousands of times. The output is a distribution, so you can say "in half of the orders the drawdown was under X, and in 95 percent it was under Y".
The method needs no special software. A spreadsheet or a short script can do it, and some testing platforms include it.

A worked simulation
Take 100 trades with a 45 percent win rate, an average win of 2R and an average loss of 1R. The expectancy is 0.45 x 2 - 0.55 x 1 = 0.9 - 0.55 = +0.35R per trade, so the 100 trades add up to +35R. I ran 10,000 random reorderings of exactly that sample, 45 wins of 2R and 55 losses of 1R, with this result.
- Median maximum drawdown: 8R.
- 95th percentile maximum drawdown: 12R.
- Longest losing streak: median 6 trades, 95th percentile 10 trades.
The total never changes, only the path does. The number to plan around is the 95th percentile: in about one ordering in twenty, the drawdown reaches 12R or more, and a bad run of ten losses in a row is not unusual.

Turning the result into a risk rule
If you risk 1 percent per trade, 12R is roughly a 12 percent drawdown, and a streak of ten losses costs about 10 percent. If your tolerance is 8 percent, you should risk about 0.65 percent per trade, since 12 x 0.65 is about 7.8. The simulation does not change the edge. It tells you how large the risk can be before the worst plausible path becomes unbearable.
Where the method falls short
- Small samples. A list of twenty trades says little about the true spread of outcomes.
- Independence. Shuffling assumes each trade is unrelated to the others. Real losses can cluster in certain market conditions.
- Regime change. If the market changes, the edge may disappear, and no simulation of the past shows that.
- Garbage in. If the results ignore costs or contain curve-fitted trades, the simulation inherits the flaws.

Rules for running a Monte Carlo test
- Collect at least 100 trades in R multiples, net of costs.
- Run 1,000 or more shuffles, and 10,000 if possible.
- Read the 95th percentile drawdown and the longest losing streak, not only the median.
- Size positions so that this drawdown is bearable. The position size calculator converts the percentage into lots for each trade.
- Repeat when you have more trades, and check whether the picture is stable.
- Compare with a live record. If your real drawdown exceeds the simulated range, review the strategy. The glossary explains terms such as drawdown, expectancy and R multiple.
Illustrative example: a risk cut that keeps the plan
What follows is an illustrative example in which every price is made up. After the simulation above, a trader with a $32,000 account decides to risk 0.5 percent per trade, so a bad-case drawdown of 12R is about 6 percent. EUR/USD pulls back to support and the trader buys at 1.0880 with a stop at 1.0830, which is 50 pips, and a target at 1.0980, which is 100 pips.
The risk is $160, so the size is $160 / (50 pips x $10) = 0.32 lot. Price reaches the target, and the trade makes 100 pips x $10 x 0.32 = $320, a 2R win.
Illustrative example: a loss inside the simulated range
This is another illustrative example. The trader takes a wider swing setup, selling GBP/USD at 1.2590 with a stop at 1.2670, which is 80 pips, and a target at 1.2430, which is 160 pips. The risk is the same $160, so the size is $160 / (80 x $10) = 0.20 lot.
The stop is hit, for a loss of 80 pips x $10 x 0.20 = $160, while the target would have paid $320. It is one of the losses that the simulation expected: with 55 losers in every 100 trades, runs of several in a row are normal, and a loss of 0.5 percent each is survivable.
Common mistakes
- Using too few trades. A tiny sample gives a misleading range. Fix it by collecting at least 100 trades before you rely on the result.
- Looking only at the median. The median hides the bad cases. Fix it by planning around the 95th percentile.
- Leaving out costs. Gross results overstate the edge. Fix it by using net R multiples.
- Assuming the future will match. Edges can fade. Fix it by monitoring live results against the simulated range.
- Not changing the size after the test. The point of the test is to set risk. Fix it by turning the bad-case drawdown into a risk percentage.
Pre-trade checklist
- Your risk per trade matches the drawdown you can tolerate.
- The strategy's trades are recorded net of costs.
- You know the longest losing streak you might face.
- The stop is based on structure and the loss is a fixed percentage.
- The first target is placed at least twice your stop distance.
- Live results are compared with the simulated range.
Frequently asked questions
What is a Monte Carlo simulation?
A method that reorders your past trades at random many times to show the range of possible equity curves and drawdowns. The result is a distribution of outcomes, not a single curve. It helps you plan for bad luck.
How many trades do I need?
At least 100 is a reasonable minimum, and more is better. Small samples give unreliable ranges.
Does it predict future results?
No. It shows how much of your past result depended on the order of trades, which helps you plan for bad luck.
What drawdown number should I use?
Many traders use the 95th percentile, which means a drawdown worse than that appears in only about one in twenty orderings. Size your risk so that this number is bearable. Check live results against the range as they build up.
Can I do it in a spreadsheet?
Yes. Shuffle the column of R values, compute the running total and the maximum drawdown, and repeat with a macro or a short script.
Leveraged trading carries real risk of loss. This guide is intended for learning and should not be taken as investment advice. Simulation figures apply to the invented sample described, and real results can be worse than any simulation.



