Trading Insights appInstant alerts + MT4/MT5 auto-trade
Get app

Monte Carlo Simulation for Traders: How to Stress-Test Your Results

A Monte Carlo test reorders your trades thousands of times to show how bad luck could look. Learn the method, how to read the drawdown range, and its limits.

Monte Carlo Simulation for Traders: How to Stress-Test Your Results
Timeframe
H1
Best for
Advanced
Risk per trade
1% or less
In this article
  1. What the simulation does
  2. A worked simulation
  3. Turning the result into a risk rule
  4. Where the method falls short
  5. Rules for running a Monte Carlo test
  6. Illustrative example: a risk cut that keeps the plan
  7. Illustrative example: a loss inside the simulated range
  8. Common mistakes
  9. Pre-trade checklist
  10. Frequently asked questions
  11. What is a Monte Carlo simulation?
  12. How many trades do I need?
  13. Does it predict future results?
  14. What drawdown number should I use?
  15. Can I do it in a spreadsheet?

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.

Three cards on Monte Carlo: reorder past trades randomly many times, the output is a range of equity curves and drawdowns, and the goal is to see how bad bad luck could be
Figure 1: Shuffle, repeat, compare.

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.

A table: 100 trades with a 45 percent win rate, average win 2R and average loss 1R give expectancy of 0.35R, then 1,000 shuffles give median and 95th percentile drawdowns and losing streaks
Figure 2: Expectancy is positive.

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.
Three cards on risks: a small sample gives weak results, the method treats trades as independent, and the future may differ from the past
Figure 3: Garbage in, garbage out.

Rules for running a Monte Carlo test

  1. Collect at least 100 trades in R multiples, net of costs.
  2. Run 1,000 or more shuffles, and 10,000 if possible.
  3. Read the 95th percentile drawdown and the longest losing streak, not only the median.
  4. Size positions so that this drawdown is bearable. The position size calculator converts the percentage into lots for each trade.
  5. Repeat when you have more trades, and check whether the picture is stable.
  6. 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.

#Monte Carlo simulation#drawdown#trade statistics#risk management#backtesting#expectancy#stress test#trading system

Risk warning: this article is educational content, not financial advice. Trading forex, gold, indices and crypto involves substantial risk of loss. Test any strategy on a demo account first and never risk money you can't afford to lose.

Put this into practice with real signals.

Signals are free on the website. Get the Trading Insights app for instant push alerts, the MT4/MT5 auto-execution EA and a live results dashboard.

Risk Management

Averaging Down in Trading: Why Adding to a Losing Trade Is Dangerous

Averaging down adds to a losing trade to lower the average price. Learn why it raises risk, see the numbers, and what to do instead: planned scaling and clean stops.

Read more →
Risk Management

Thinking in Probabilities: How to Trade Without Needing to Be Right

You do not need to be right every time to make money. Learn how to think in probabilities, with a worked expectancy example, the odds of losing streaks, and how to judge groups of trades.

Read more →
Risk Management

Trading During a Drawdown: How to Protect Your Account and Your Mind

A drawdown tests your rules. Learn how to respond with a planned pause, reduced risk and a process review, and why raising size to recover usually makes things worse.

Read more →