Monte Carlo Simulation for Trading: The Complete Guide to Validating Your Strategy
Learn how Monte Carlo simulation validates your trading strategy by testing thousands of trade sequences. Understand probability of ruin, drawdown risk, equity percentiles, and fan charts. Complete guide with practical examples.
You backtested your strategy and the equity curve looks great. Win rate is 62%, profit factor is 2.1, and your Sharpe ratio is above 1.5. Should you start trading it live? Not yet.
A single backtest shows you one possible outcome — the one where trades happened in that exact sequence. But what if your three biggest winners had come later? What if your worst losing streak hit right at the start? Monte Carlo simulation answers these questions by running your strategy through thousands of alternate realities.
What Is Monte Carlo Simulation?
Monte Carlo simulation is a statistical technique that uses random sampling to model the probability of different outcomes. In trading, it works like this:
- Extract your trade results — Every closed trade from your backtest becomes a data point: its P&L in dollars.
- Shuffle and replay — The simulation randomly reorders your trades and replays them to build a new equity curve. This is called bootstrapping with replacement.
- Repeat thousands of times — Each shuffle produces a different equity curve. Run 1,000 to 10,000 shuffles and you get a distribution of possible outcomes.
- Analyze the distribution — Instead of looking at one equity curve, you now see the full range: best case, worst case, median, and everything in between.
The key insight: your trades are the same in every simulation — only the order changes. This isolates the impact of trade sequencing from the actual edge of your strategy.
Why Trade Order Matters More Than You Think
Consider a strategy with 10 trades: 7 winners averaging +$200 and 3 losers averaging -$400. The total P&L is always +$200 regardless of order. But the path to that $200 varies dramatically:
- Lucky sequence: The 3 losers are spread out, drawdown never exceeds 5%, and the equity curve climbs smoothly. You feel confident and size up.
- Unlucky sequence: All 3 losers hit consecutively at the start. You're down -$1,200 before your first winner. You panic, reduce size, or abandon the strategy entirely.
Both sequences have the same edge. But in the second scenario, you might never reach the winners because you've already quit. Monte Carlo shows you the probability of each scenario so you can prepare mentally and financially.
What Monte Carlo Tells You
1. Probability of Ruin
This is the percentage of simulations where your account drops below a critical threshold — typically 50% of your starting balance. If your probability of ruin is 15%, it means that even with a winning strategy, there's a 15% chance that an unlucky trade sequence could halve your account. That's not a number most traders are comfortable with.
2. Drawdown Distribution
Instead of knowing your backtest's maximum drawdown was 12%, Monte Carlo shows the probability of hitting various drawdown levels:
- ≥10% drawdown: 72% probability
- ≥20% drawdown: 28% probability
- ≥30% drawdown: 8% probability
- ≥50% drawdown: 1.2% probability
This is far more useful for risk management than a single max drawdown number.
3. Equity Percentiles
The simulation produces final equity values for each run. Sorting them gives you percentiles:
- 95th percentile (best case): Only 5% of simulations did better than this
- 75th percentile: Top quarter outcome
- 50th percentile (median): The most likely outcome
- 25th percentile: Below average but not catastrophic
- 5th percentile (worst case): Only 5% of simulations did worse
4. The Fan Chart
Visualize all simulation paths overlaid on one chart. The result looks like a fan spreading out from your starting balance. A tight fan means your results are consistent regardless of trade order. A wide fan means your results are highly dependent on sequencing — a warning sign even if the median outcome is positive.
How to Interpret Monte Carlo Results
Green Flags
- Probability of ruin below 5%
- Median final equity significantly above starting balance
- Even the 5th percentile (worst case) is profitable or only slightly negative
- Tight fan chart — consistent results across sequences
Red Flags
- Probability of ruin above 10% — your strategy could blow up with bad luck
- Wide gap between 5th and 95th percentile — results are sequence-dependent
- 5th percentile shows significant loss — even a winning strategy can lose big
- High probability of ≥30% drawdown — can you emotionally handle that?
Monte Carlo vs. Other Validation Methods
| Method | What It Tests | Limitation |
|---|---|---|
| Walk-forward testing | Out-of-sample performance | Only tests one path, one market regime |
| Cross-validation | Robustness across time periods | Doesn't address trade sequence risk |
| Monte Carlo | Trade sequence risk | Assumes trades are independent (no autocorrelation) |
| Parameter sensitivity | Robustness to indicator settings | Doesn't test execution path variability |
Monte Carlo doesn't replace other methods — it complements them. Use walk-forward testing to validate your edge, then Monte Carlo to understand the risk of that edge under different trade sequences.
Practical Example
You backtest a mean-reversion strategy on EUR/USD over 6 months and get 47 trades:
- Win rate: 58%
- Average win: $180
- Average loss: -$120
- Profit factor: 2.06
- Max drawdown: 8.2%
- Final equity: $12,340 (starting from $10,000)
Looks solid. But Monte Carlo with 5,000 simulations reveals:
- Median final equity: $12,180 (close to backtest — good sign)
- 5th percentile: $9,640 (you could lose money with this winning strategy)
- 95th percentile: $14,920
- Probability of ≥20% drawdown: 14%
- Probability of ruin (50% loss): 0.8%
The key takeaway: there's a 5% chance you end up negative despite having a profitable strategy. And a 14% chance of a 20%+ drawdown. Are you okay with that? If not, reduce position size until those numbers are acceptable.
How to Run Monte Carlo on Backtestic
- Complete a backtest session with at least a few closed trades
- Navigate to Testing → Analytics tab
- Scroll down to the Monte Carlo Simulation section
- Choose the number of simulations (1,000 is a good default, 10,000 for high precision)
- Click Run Simulation
You'll see the fan chart with percentile bands, final equity percentiles, drawdown probability bars, and your probability of ruin. Use these to decide whether your strategy is robust enough to trade live — and at what position size.
Monte Carlo simulation is available on Pro ($19/mo) and Elite ($39/mo) plans.
Practice What You've Learned
Apply these concepts with backtestic's chart replay and analytics tools.
Start Free Today