What Is the Risk of Ruin Calculation in a Trading System Monte Carlo Simulation?

Listen to this article

Every forex system that survives long enough eventually faces the same question: what are the odds this strategy wipes out the account before it compounds into something useful? That question has a name. Risk of ruin. It is not a feeling or a hunch — it is a probability, and it can be calculated with precision using Monte Carlo simulation. This article explains what the risk of ruin calculation in a trading system Monte Carlo simulation actually measures, how the mathematics behind it works, and how to apply it to a live forex strategy.

Most retail traders size positions by instinct. Professional risk managers do not. They run thousands of simulated equity curves, measure how many end in ruin, and adjust position size until that probability falls below an acceptable threshold. This is neither exotic nor optional for serious system trading — it is the backbone of capital preservation. What follows is a comprehensive, technically grounded breakdown of the method, its inputs, its limitations, and how to build one yourself.




Table of Contents

  • What the Risk of Ruin Calculation Actually Measures
  • Why Monte Carlo Simulation Is the Correct Tool
  • The Core Inputs Behind the Calculation
  • Building the Simulation Step by Step
  • Interpreting the Output
  • Common Mistakes That Distort the Result
  • Applying the Result to Forex Position Sizing
  • FAQ

What the Risk of Ruin Calculation Actually Measures

Risk of ruin is the probability that a trading account’s equity falls to a predefined “ruin” threshold — typically zero, or a drawdown level at which trading stops — before the strategy achieves its expected long-term return. It is a probability, expressed as a percentage, not a guarantee.

Classical risk-of-ruin formulas, derived from gambler’s ruin theory, assume fixed win rate, fixed payoff ratio, and fixed stake. Forex systems rarely satisfy those assumptions. Win rates drift. Reward-to-risk ratios vary trade to trade. Correlated losing streaks cluster around news events. This is precisely why Monte Carlo simulation replaces the closed-form formula for any system used in live trading.

  • Ruin — account equity hits a stop-out level, commonly 0% or a fixed maximum drawdown such as 20-50%.
  • Risk of ruin (RoR) — the percentage of simulated equity paths that touch that level.
  • Acceptable threshold — most professional risk desks target RoR below 1-5%.

Why Monte Carlo Simulation Is the Correct Tool

Monte Carlo simulation generates thousands of alternate trade sequences by randomly resampling a system’s historical trade outcomes, then tracks equity through each sequence. Instead of asking “what happened,” it asks “what could plausibly happen next, across every reasonable ordering of wins and losses.”

A forex trading system's porcupine looking at the camera with a excited expression, and a forex trading chart in the background

A single backtest produces one equity curve. That curve reflects one specific sequence of trades in one specific order. Reorder the same trades — put the losing streak at the start instead of the middle — and the equity curve looks entirely different, sometimes catastrophically so. Monte Carlo simulation removes this sequencing bias by testing thousands of orderings.

  • Sequence risk exposure — reveals what happens if losses cluster early, when the account is most vulnerable.
  • Distribution, not a point estimate — produces a full probability distribution of outcomes instead of one curve.
  • Parameter stress-testing — allows win rate, payoff ratio, and position size to be varied and re-tested instantly.

Academic treatment of gambler’s ruin and its extensions is well documented in probability theory; the Encyclopedia of Mathematics entry on the gambler’s ruin problem is a solid reference for the underlying theory before applying it computationally.

The Core Inputs Behind the Calculation

The quality of a risk-of-ruin simulation depends entirely on the quality of its inputs. Garbage sequences in, meaningless probabilities out.

  • Win rate — the historical percentage of profitable trades, drawn from a statistically significant sample (minimum 100 trades, ideally 300+).
  • Average win and average loss size — expressed in R-multiples (multiples of risk per trade) for portability across position sizes.
  • Position size per trade — usually expressed as a fixed percentage of equity risked (e.g., 1-2%).
  • Ruin threshold — the equity level defined as failure.
  • Number of trades simulated — the trade count per simulated path, matched to a realistic trading horizon (e.g., one year of trade frequency).
  • Number of simulation runs — typically 1,000 to 10,000 iterations for a stable probability estimate.

Correlation between trades matters too. Forex systems trading multiple pairs often share exposure to the same macro driver — dollar strength, for instance — so losses are not statistically independent. A rigorous simulation should resample correlated trade clusters together, not treat every trade as an isolated coin flip.

Building the Simulation Step by Step

The mechanics are straightforward once the inputs are defined. This is the standard structure used across quantitative trading desks and adaptable in Python, R, or a spreadsheet with a random number generator.

  1. Compile the trade history — extract R-multiple outcomes from backtest or live results.
  2. Resample with replacement — randomly draw trades from the historical set (bootstrap method) to build one simulated sequence.
  3. Apply position sizing — convert each R-multiple outcome into an equity change using the fixed risk percentage.
  4. Track equity path — record the running equity balance after each simulated trade.
  5. Flag ruin events — mark the path as “ruined” the moment equity crosses the threshold.
  6. Repeat thousands of times — generate the full distribution of outcomes.
  7. Calculate RoR — divide the number of ruined paths by the total number of simulated paths.

A related approach draws directly from a fitted probability distribution (normal, or fat-tailed for currency markets) rather than resampling historical trades. This parametric method is faster computationally but risks understating tail risk if the distribution choice does not reflect the true shape of forex returns — currency markets are notoriously prone to fat-tailed, leptokurtic distributions during volatility spikes.

Interpreting the Output

Raw risk-of-ruin numbers only mean something in context. A 2% risk of ruin sounds negligible until it is understood as roughly a 1-in-50 chance of total account failure per simulated trading horizon.

  • Below 1% — generally considered conservative and acceptable for capital preservation.
  • 1-5% — moderate risk, often used by traders accepting higher variance for higher growth.
  • Above 10% — considered reckless by most institutional standards; position size or system edge needs revision.

The simulation output should always include the full distribution, not just the ruin percentage: median equity outcome, maximum drawdown distribution, and the percentage of paths achieving the target return. A system with 0% risk of ruin but poor median growth is not necessarily preferable to one with 3% risk of ruin and dramatically higher median return — this is where risk tolerance and capital objectives intersect.

Common Mistakes That Distort the Result

Several recurring errors invalidate risk-of-ruin simulations, even when the underlying code is correct.

  • Overfitting the trade sample — running the simulation on a curve-fitted backtest inflates the win rate and understates true risk.
  • Ignoring trade correlation — treating correlated forex pairs as independent events understates tail risk substantially.
  • Static position sizing assumptions — real traders often increase size after wins or reduce after losses; the simulation should reflect actual sizing behavior, not an idealized fixed percentage.
  • Too few simulation runs — fewer than 1,000 iterations produces an unstable, noisy probability estimate.
  • Excluding slippage and spread variability — forex execution costs fluctuate with volatility and liquidity; omitting this understates real drawdown risk.

Applying the Result to Forex Position Sizing

The entire purpose of the calculation is actionable: it should directly inform how much capital is risked per trade. The relationship between position size and risk of ruin is nonlinear — halving risk per trade does not merely halve the ruin probability, it often reduces it by an order of magnitude.

  • Run the simulation at multiple risk-per-trade levels — 0.5%, 1%, 2%, 3% — and compare resulting RoR side by side.
  • Select the highest risk level that keeps RoR under the chosen threshold — this maximizes growth without breaching risk tolerance.
  • Re-run the simulation quarterly — win rate and payoff ratio drift as market regimes shift, and the sizing decision should drift with it.
  • Cross-check against the Kelly criterion — Kelly sizing provides a theoretical growth-optimal fraction, but full Kelly typically produces unacceptable drawdowns; most professional traders size at a quarter to half of the Kelly fraction, informed by the Monte Carlo result.

Reputable resources such as Investopedia’s coverage of Monte Carlo simulation in finance provide useful supplementary context on how the technique transfers across asset classes beyond forex.

FAQ

What is a good risk of ruin percentage for a forex trading system?

Most professional risk frameworks target below 1-5% risk of ruin over the relevant trading horizon. Anything above 10% signals oversized positions or an insufficient statistical edge.

How many trades are needed before a risk of ruin simulation is reliable?

A minimum of 100 historical trades is generally required, with 300 or more preferred. Smaller samples produce unstable win rate and payoff ratio estimates, which propagate directly into the simulation.

Does risk of ruin account for spread and slippage in forex?

Only if explicitly modeled. A rigorous simulation should incorporate realistic transaction costs, since forex spreads widen during volatility and materially affect real-world drawdown compared to idealized backtest figures.

Is Monte Carlo simulation better than the classical gambler’s ruin formula?

For live trading systems, yes. The classical formula assumes fixed win rate and payoff ratio, which forex systems rarely maintain. Monte Carlo simulation captures variable outcomes, sequencing risk, and correlation more realistically.

How often should a trader re-run the risk of ruin calculation?

Quarterly at minimum, or immediately after any material change in win rate, payoff ratio, or position sizing rules. Market regime shifts alter the statistical inputs the entire calculation depends on.

Conclusion

The risk of ruin calculation in a trading system Monte Carlo simulation converts vague risk intuition into a measurable probability. It exposes sequencing risk that a single backtest curve conceals, and it gives a direct, quantitative basis for setting position size. Forex traders who skip this step are, in effect, gambling on an unmeasured probability of total capital loss. Those who run it — correctly, with realistic inputs and adequate iterations — trade with a clear-eyed view of exactly how much risk their system carries. Build the simulation, test multiple position sizes against it, and let the resulting risk of ruin figure — not instinct — set the final risk-per-trade decision.


Take a Random Walk
Not sure what to read next? Pick a level for a random article you haven’t seen yet.


Test Your Knowledge
1. According to the article, what does Monte Carlo simulation do that a single backtest cannot?
2. Per the article's recommended workflow, what should a trader do after running the simulation at multiple risk-per-trade levels (0.5%, 1%, 2%, 3%)?
3. What does the article say about excluding slippage and spread variability from the simulation?