Monte Carlo Simulation

A statistical technique that runs thousands of simulated scenarios by randomly resampling or perturbing a strategy's historical trade outcomes. Monte Carlo simulation estimates the range of possible future performance, including worst-case scenarios that may not appear in a single backtest.

Monte Carlo simulation is a computational technique that uses random sampling to estimate the range of possible outcomes for a trading strategy. Rather than relying on a single backtest path (which represents just one of many possible historical sequences), Monte Carlo simulation generates thousands of alternative scenarios by resampling or shuffling the strategy's trade outcomes. This reveals the distribution of possible returns, drawdowns, and other metrics, providing a much richer view of a strategy's risk profile.

How Monte Carlo simulation works in trading

The simplest approach takes the actual trade results from a backtest and randomly resamples them with replacement to create new sequences. Each resampled sequence produces a different equity curve with different drawdown characteristics and terminal wealth. Running this process thousands of times builds a distribution of possible outcomes.

For example, if a backtest produced 200 trades, Monte Carlo simulation creates 10,000 alternative sequences of 200 trades, each drawn randomly from the original trade pool. Some sequences will have more consecutive losers, producing deeper drawdowns. Others will cluster winners together, producing smoother equity curves. The distribution of outcomes shows the probability of various drawdown levels and return targets.

Why a single backtest is insufficient

A single backtest produces one equity curve that depends on the specific sequence of trades. If the strategy's worst trade happened to occur early, when the account was small, the drawdown in dollar terms is minor. But if the same trade occurred late, when the account had grown, the drawdown could be catastrophic. The single backtest only shows one sequence, not the full range of possibilities.

Monte Carlo simulation answers questions that a single backtest cannot: What is the probability of a 30% drawdown? What is the 95th percentile worst-case drawdown? What is the range of terminal wealth after one year? These probabilistic answers are far more useful for risk management than a single deterministic backtest result.

Applications in strategy evaluation

Traders use Monte Carlo simulation to set realistic expectations for drawdowns. If the simulation shows a 15% probability of a 25% drawdown, the trader can decide whether that risk is acceptable before deploying capital. Without the simulation, the trader might only see the backtest's actual maximum drawdown of 12% and be unprepared for deeper drawdowns.

Monte Carlo analysis also helps with position sizing decisions. By simulating how different position sizes affect the distribution of outcomes, traders can find the allocation that balances return potential against drawdown risk according to their personal tolerance.

Practical example

A strategy's backtest shows 150 trades over two years with a 15% annual return and 10% maximum drawdown. Monte Carlo simulation resamples these trades 10,000 times. The results show a median annual return of 14.5%, a 95th percentile maximum drawdown of 22%, and a 5% probability of losing money over the two-year period. The single backtest's 10% drawdown was optimistic: the strategy's realistic worst-case drawdown is more than twice as large.

How Tektii helps

Tektii supports Monte Carlo analysis on backtest results, allowing traders to generate thousands of simulated equity curves from their strategy's actual trade outcomes. The platform calculates confidence intervals for key metrics including maximum drawdown, total return, and Sharpe ratio. By providing probabilistic risk assessment rather than single-point estimates, Tektii helps traders make better-informed decisions about capital allocation and risk management.

See monte carlo simulation in action

Test your trading strategies with professional backtesting tools and real market data.

Start for free