Home/Glossary/Monte Carlo simulation
Analysis & metrics

Monte Carlo simulation

A family of methods using random simulation to examine outcomes under an explicitly specified model. In strategy analysis, simulated trade or return paths can produce distributions of equity, drawdown or threshold breaches rather than one historical curve. Resampling is one possible approach. Results estimate risk within the model, not the full real-world risk of ruin; input quality, dependence, costs and selection bias remain decisive.
Example. Take the same hypothetical trades −1R, −1R and +2R. One ordering starts with a 2R drawdown; another starts with a 2R gain before returning to zero. Reordering changes the path while preserving the sum; resampling with replacement can also change the sum.

Understanding the concept

Declare the data, sampling scheme, position-sizing rule, costs, number of simulations and seed. Distinguish shuffled fixed observations from resampled observations and model-generated shocks. If losses cluster, independent sampling may erase relevant dependence; a suitable block or conditional model can address part of that problem.

Common mistake

Thousands of simulations do not repair overfitting or generate an unseen crisis automatically. Report whether a quoted percentile describes maximum drawdown, terminal equity or another statistic, and its limitations.

Further learning

In the course: 9.2 The math of losses: recovery asymmetry and risk of ruin; 15.10 Strategy Audit — When to Fix the System, When to Fix Yourself. Sources: SciPy: random simulation and resampling.

Percentiles and simulation error

State whether a percentile describes drawdown, terminal equity or barrier breach. Check stability across seeds and path counts. Separate simulation noise from model uncertainty: more paths can reduce the former without repairing a wrong distribution or incomplete history.

FAQ

Is simulated risk of ruin the true probability of account failure?
No. It is a model-conditional estimate whose usefulness depends on assumptions and the representativeness of its inputs.
Are shuffling and sampling with replacement equivalent?

No. Shuffling preserves the outcomes and their sum; replacement can alter both. Path-dependent sizing further changes cash outcomes.

← Back to the full glossary

Jarosław Wasiński

Editor-in-chief, ForexMechanics.com • Macro & FX analyst

Independent analyst and practitioner with over 20 years of experience in financial markets. Actively involved in Forex since 2007, with a focus on fundamental analysis, OTC market structure, and disciplined capital risk management.

  • Creator and editor-in-chief of MyBank.pl, providing reliable financial education since 2004.
  • Author of hundreds of in-depth market commentaries, structural analyses, and educational materials for traders and investors.
  • Advocate for market transparency, promoting education grounded in hard data and institutional reports (BIS, ESMA, CFTC).

Full author profile, credentials & published research →

All content is educational and informational only – it does not constitute investment advice or a recommendation. Remember: leveraged trading (Forex/CFD) carries a high risk of rapid capital loss.