Trading forex and CFDs on leverage is high risk. Most retail accounts lose money. Read the risk warning

Monte Carlo Simulation in Forex Trading

Monte Carlo simulation in forex trading means taking the statistical profile of a strategy, usually its list of past trades, and generating thousands of alternative sequences to see the range of outcomes it could plausibly produce. Its main job is to answer the question a single backtest cannot: how bad could the drawdown and losing streaks get by bad luck alone, even if the strategy's edge is real? Used properly, it is one of the best tools for choosing position size and setting expectations.

Key takeaways

  • A backtest shows one path through your trades; Monte Carlo shows thousands, so you see the drawdowns you happened to avoid.
  • Reshuffling trade order changes drawdown and streaks but not final profit; resampling with replacement varies both.
  • Size positions from a high percentile of simulated drawdown (for example the 95th), not from the backtest's single figure.
  • In our illustrative simulation a strategy with a genuine positive edge still finished 200 trades in the red about 14% of the time.
  • Monte Carlo assumes your trade sample represents the future. It cannot rescue a curve-fitted strategy or predict a regime change.

Why one backtest is a dangerous guide

Your backtest's trade list is one sequence out of an enormous number that the same edge could have produced. If the losers happened to be spread out, the maximum drawdown looks mild. Rearrange the same trades so six losers sit together and the drawdown might double. Nothing about the strategy changed; only luck did.

Traders who size positions from the backtest drawdown are therefore sizing from a single draw of a random variable, and often an optimistic one, since strategies with ugly backtests rarely get chosen. Monte Carlo replaces that single draw with a distribution, so you can say "in 95% of simulated sequences the drawdown stayed below X" rather than "the drawdown was X".

The main types of Monte Carlo used by traders

MethodWhat it doesWhat it tells youCaveat
Reshuffle (permutation)Randomly reorders the actual trade list thousands of timesDistribution of drawdown and losing streaks for the same set of tradesFinal profit is identical in every run, so it says nothing about return uncertainty
Resample with replacement (bootstrap)Builds new sequences by drawing trades at random from the list, repeats allowedRange of final returns, drawdowns and probability of finishing negativeAssumes trades are independent and the sample is representative
ParametricGenerates trades from a win rate and win/loss distribution rather than the trade listQuick "what if" analysis for a system you describe with a few numbersOnly as good as the assumed distribution; real losses have fatter tails
Execution noiseAdds random slippage, skipped trades or wider spreads to each tradeHow sensitive results are to real-world frictionThe noise levels are your assumption
Parameter perturbationReruns the backtest with inputs nudged randomlyWhether the strategy depends on precise settingsRequires rerunning the tester many times

Most retail traders start with reshuffling and bootstrapping because they only need an exported trade list and a spreadsheet or a short script.

A worked simulation with real arithmetic

To show what Monte Carlo reveals, we ran a parametric simulation of a simple hypothetical strategy. It is not a real system and not a recommendation; the assumptions are chosen to resemble a modest trend-following approach.

  • Win rate: 40%
  • Average win: 1.8R (R being the amount risked per trade)
  • Average loss: 1R
  • Expectancy: (0.40 x 1.8) minus (0.60 x 1) = +0.12R per trade
  • 200 trades per run, 10,000 runs, compounding risk as a fixed percentage of current equity

An expectancy of +0.12R means that, in the long run, each trade adds 12% of the amount risked. At 1% risk per trade that is roughly 0.12% of equity per trade before compounding effects. Here is what the 10,000 simulated sequences produced:

Result over 200 tradesRisk 1% per tradeRisk 2% per trade
Median final equity (start = 100)about 125about 150
5th percentile final equityabout 92about 81
Share of runs finishing below the starting balanceabout 14%about 14%
Median maximum drawdownabout 13%about 25%
95th percentile maximum drawdownabout 24%about 43%
99th percentile maximum drawdownabout 30%about 52%
Median longest losing streak9 trades
95th percentile longest losing streak14 trades

What the numbers say

A real edge still loses money often. Even with the edge built in, about one run in seven ended 200 trades below where it started. A trader in that position would very likely conclude the strategy "stopped working", when it was simply variance.

Losing streaks are longer than intuition suggests. With a 60% loss rate, a run of nine losses in 200 trades was the median outcome, and 14 in a row happened in about one run in twenty. If your plan cannot survive 14 consecutive losses psychologically or financially, you need smaller size.

Doubling risk does not double safety margins; it erodes them faster. Going from 1% to 2% raised the median result but almost doubled the typical drawdown, and the bad-case drawdown reached about 43%. Recovering from a 43% drawdown requires a gain of about 75%, which the drawdown recovery calculator illustrates. That asymmetry is why the 1% risk rule is popular.

Using Monte Carlo to choose position size

The most practical use is working backwards from the drawdown you can tolerate. The process:

  1. Decide the maximum drawdown you are willing to experience, for example 20%.
  2. Run the simulation at several risk levels.
  3. Pick the highest risk at which the 95th (or 99th, if you are cautious) percentile drawdown stays below your limit.

From the table above, 1% risk has a 95th percentile drawdown of about 24%, already above a 20% tolerance. For this hypothetical strategy, a trader with a 20% limit would want risk of roughly 0.75% per trade or a little less (at 0.8% the simulated 95th percentile was already just under 20%). The backtest might have shown a 12% drawdown and suggested 1.5% was fine; the simulation shows why that would be a mistake.

Remember too that these are drawdowns from a strategy whose edge is assumed to be real and stable. Live results include costs, slippage and changing markets, so treat the simulation as a floor on how bad things can get, not a ceiling.

Monte Carlo and prop firm challenges

Prop evaluations are a natural fit for simulation because they have hard boundaries: a profit target and a maximum loss. We ran the same hypothetical strategy against a simple two-boundary test: a 10% profit target and a 10% static maximum loss, with risk as a fixed percentage of the starting balance and no daily loss limit or time limit.

Risk per tradeShare of runs hitting +10% before -10%
0.5%about 94%
1%about 80%
2%about 66%

Do not read these as realistic pass rates. They assume a proven positive edge, no costs, no daily drawdown rule and unlimited time, all of which flatter the result. Many traders who attempt challenges do not have a demonstrable edge at all, and for them the simulation would look far worse. What the table does show reliably is the direction: higher risk per trade reaches the target faster but fails more often, even with an edge. Our guide on how to pass a prop firm challenge covers the rules that a simple simulation leaves out.

The biggest limitation: garbage in, garbage out. Monte Carlo treats your trade list as a fair sample of the future. If the backtest was over-optimised, the simulation will confidently describe a strategy that does not exist. It also assumes trades are independent, while real losses cluster during regime changes and news shocks. Use it to size risk on a strategy that has already passed out-of-sample checks, and remember that most retail leveraged forex and CFD accounts lose money regardless of the analysis behind them.

Running your own simulation

In a spreadsheet

Export your closed trades with their result expressed in R (profit divided by the amount risked). If your journal does not do this, our free Excel trading journal template can. Then:

  1. Put the R values in one column, for example A2:A201.
  2. In a new column, draw a random trade with =INDEX($A$2:$A$201, RANDBETWEEN(1,200)). Copy it down 200 rows. That is one bootstrapped sequence.
  3. Build an equity column: start at 100 and multiply each row by (1 + risk x R).
  4. Track a running peak and the drawdown from it; record the maximum.
  5. Repeat across many columns, or use a data table to recalculate a thousand times, then compute percentiles of the maximum drawdown and final equity.

For reshuffling instead, sort the trade list by a column of RAND() values and recalculate.

In code or dedicated software

A Python script with a loop and a random number generator does the same in a few dozen lines and handles 10,000 runs in seconds. Several commercial backtesting packages include Monte Carlo reports; our comparison of forex backtesting software notes which ones. MetaTrader itself does not include a Monte Carlo report in its standard tester, so most MT users export trades and analyse them elsewhere.

How many runs?

A thousand runs gives stable medians; for 95th and 99th percentiles, 5,000 to 10,000 runs are better. More runs make the estimate of the distribution more precise, but they cannot make the underlying sample more representative.

Common mistakes

  • Simulating from in-sample trades only. Use out-of-sample or walk forward trades where possible; in-sample trades carry the optimism of curve fitting.
  • Too few trades in the sample. Bootstrapping 30 trades just recycles the same 30 outcomes; percentiles will be unreliable.
  • Ignoring costs. If trades were recorded without spread and commission, subtract them before simulating.
  • Fixed lots instead of fixed risk. Make sure the simulation sizes trades the same way you will trade live.
  • Quoting the median as the plan. Plan for the bad tail, not the middle.
  • Believing tight distributions. If every run looks nearly identical, check whether your win/loss sizes are realistic. Real trading has occasional outsized losses from gaps and slippage; see the payoff maths in our risk-to-reward calculator.

Frequently asked questions

What does Monte Carlo simulation tell a forex trader?

It shows the range of outcomes your strategy could produce through luck alone, given its historical trade profile. The most useful outputs are percentiles of maximum drawdown, the longest likely losing streak and the probability of finishing a period with a loss. Those figures help set position size and realistic expectations far better than a single backtest.

Is Monte Carlo better than backtesting?

It is not a replacement. A backtest generates the trade sample; Monte Carlo analyses how that sample might play out in different orders or combinations. If the backtest is curve-fitted or uses unrealistic costs, the simulation inherits those flaws. Use backtesting with out-of-sample checks first, then Monte Carlo to understand variance and size risk.

How many trades do I need for a meaningful Monte Carlo?

More is better, and around 100 is a sensible minimum; several hundred is preferable. With small samples, the simulation keeps reusing the same few outcomes and cannot represent rare but important events such as large slippage or a long losing streak. If your sample is small, treat the simulated tail as optimistic.

What percentile drawdown should I plan for?

Many traders size positions so the 95th percentile simulated drawdown is within their tolerance, and cautious traders use the 99th. Planning around the median means roughly half of all plausible paths would be worse than your plan. Live trading adds costs and regime changes, so leave a further margin beyond the simulated figure.

Can Monte Carlo predict whether I will pass a prop firm challenge?

It can estimate pass and fail probabilities under stated assumptions, which is useful for comparing risk levels. It cannot give a realistic pass rate unless your trade sample reflects a genuine edge, and simple models usually omit daily loss limits, time limits, costs and behaviour under pressure. Treat results as directional, not as odds you can rely on.

Does Monte Carlo account for changing market conditions?

Not by itself. Standard methods assume each trade is drawn from the same distribution, so they cannot anticipate a regime change that alters the strategy's edge. You can approximate this by simulating with a reduced win rate or larger losses to see how fragile the strategy is when conditions deteriorate.

This article is general information, not personal financial advice. Figures such as spreads, fees, leverage and rules change; confirm them with the provider and check the provider is authorised for your country of residence.