Home/Risk Management/The math of losses & risk of ruin

The math of losses: recovery asymmetry and risk of ruin

After a 10% drawdown, returning to the previous peak requires an 11.1% return; after 50%, it requires 100%, and after 90%, 900%. These values follow from a single arithmetic identity and require no market data. A different status applies to risk of ruin: it is the output of a model based on a specified distribution and parameters estimated from a sample. This lesson derives the recovery table, checks the assumptions of the ruin formula, and compares capital paths under different position-sizing rules. It then accounts for costs, the order of outcomes and estimation uncertainty. Each figure can thus be accompanied by its calculation base and the conditions under which it can be used.

The detailed probability models use the following input concepts, with values stated separately for each model. This article derives none of them — that is the job of article 9.6. Here they enter purely as numbers you supply.

  • Win rate (p): feeds the formula in section 3 and the simulation; the illustrative value used below is 55%.
  • Reward-to-risk ratio (RR): sets the win size relative to the loss in the distribution sampled by the simulation; illustratively 1:1.5, but deliberately 1:1 in Sections 3 and 11, because only that ratio satisfies the gambler's ruin formula.
  • Expected value: the mean implied by the specified payoff distribution; it does not determine risk of ruin by itself, illustratively +0.54 R gross and +0.35 R after execution costs (Section 8).
Asymmetry uses two bases: a decline from PLN 10,000 to PLN 5,000 is −50%, while returning requires +100% from the trough. The ruin panel assumes p=55%, independent ±R payoffs, a fixed PLN 100 or PLN 200 amount, PLN 10,000 start, PLN 5,000 barrier, zero cost and infinite horizon: P=(0.45/0.55)^N gives about 0.0044% at N=50 and 0.663% at N=25. Monte Carlo drawings and background are conceptual, with no new simulations or market data.

Give “ruin” an amount and a deadline

“What is my risk of ruin?” is incomplete until ruin has a definition and the calculation has a horizon. Losing the entire balance, crossing a chosen operating floor and reaching an account close-out condition are different events. A probability calculated for one of them cannot silently answer a question about another.

For a small exact example, start with 1,050 PLN and stop at the first observation of capital at or below 1,000 PLN. Each completed step adds either 25 PLN or −25 PLN, independently, with probability 50% for each. These are fixed cash outcomes after all assumed costs, with no deposits, withdrawals, open positions or further charges. They are invented inputs, not estimates from trading data. First ask about a horizon of 3 steps. The model stops as soon as the floor is reached; it does not continue trading just to complete the horizon.

Count the first crossing, not only the final balance

Exact first-hit calculation in the hypothetical cash model
StepNew first-hit probabilityCumulative hit probability
10%0%
225%25%
30%25%
4, extended horizon12.5%37.5%

Two losses at the start take capital from 1,050 to 1,025 and then 1,000 PLN. Their probability is 0.5×0.5=25%. After just one loss, the floor is not yet reached. At step 3, an odd number of equal-sized changes cannot place this path exactly two loss units below its starting point, and a further crossing cannot occur without first touching the floor at an earlier step.

Enumerating the 8 equally likely length-3 sign strings gives the same result: only LLW and LLL contain that first two-loss prefix. W denotes a gain and L a loss. Their last symbol is merely a counting device: the actual stopped account has already ended at 1,000 PLN after LL. Reporting its hypothetical unstopped balance instead would change the question.

Extend the horizon without inventing new observations

Now permit 4 steps under exactly the same assumptions. The first-hit paths added at the fourth step are LWLL and WLLL. Each has probability 0.5⁴=6.25%, so together they add 12.5 percentage points. Including the earlier 25%, the crossing probability becomes 37.5%. Do not count continuations of an already stopped LL path again as new first hits.

The difference between 25% and 37.5% comes entirely from the longer horizon. No market data, improved parameter estimates or change of strategy was introduced. In the corresponding symmetric fixed-step model with no upper target and an infinite horizon, the floor is eventually reached with probability 100%. Karl Sigman’s Columbia notes derive the classical random-walk result and its assumptions. Infinite-horizon certainty supplies neither a deadline for a particular path nor the finite-horizon probability just calculated.

Separate the recovery identity from the probability model

At the floor, 50 PLN is missing from the initial 1,050 PLN. The loss fraction measured from the start is 50/1,050≈4.76%. Recovering the same cash amount from 1,000 PLN requires 50/1,000=5%. Those denominators explain the difference; they do not estimate the chance or time of recovery. A deposit of the missing amount would change account cash without being a trading return.

The simple model also has boundaries worth retaining. Its outcome amounts already include costs, so an extra fee would require a different transition rule. A gap loss could cross the floor in one step; dependent outcomes would change the probabilities of the sign strings. Neither is represented here. Use the detailed sections to examine those extensions and estimation uncertainty, while keeping the account barrier, horizon, position-sizing basis and source of each input visible. A short exact calculation is useful because every counted path can be checked, not because a real account has only these possible outcomes.

Three exercises with worked answers

The exercise data are hypothetical. Choose an answer, then check the calculation.

1. What is the first-hit probability within 3 steps?

Start 1,050 PLN; stop at or below 1,000 PLN; independent net changes ±25 PLN, each with probability 50%.

Show the answer and explanation

C. LL reaches the floor at step 2. No additional first-hit path appears at step 3.

  • A. A positive starting amount does not exclude a later barrier hit.
  • B. Two of the eight length-3 sign strings have the LL prefix, not one.
  • C. Correct: the LL prefix has probability 0.5×0.5=25%.
  • D. The question specifies a finite horizon.
2. What is the cumulative first-hit probability after extending the horizon to 4 steps?

The earlier LL prefix contributes 25%; new first-hit paths LWLL and WLLL each contribute 6.25%.

Show the answer and explanation

A. Add mutually exclusive first-hit events. Do not count a continuation of an already stopped path as another first hit.

  • A. Correct: 25+6.25+6.25=37.5%.
  • B. That includes only the new fourth-step hits.
  • C. That includes only one of the two new paths.
  • D. The equal chance of each sign is not the barrier-crossing probability.
3. What trading return would recover 1,050 PLN from the floor?

Capital remaining 1,000 PLN; target 1,050 PLN; no deposits or further costs outside the stated net outcomes.

Show the answer and explanation

D. Use the capital remaining as the recovery denominator. The required return determines no recovery time.

  • A. That measures the loss from the starting amount, not recovery from what remains.
  • B. That confuses the cash difference with a percentage.
  • C. That is the separate three-step first-hit probability.
  • D. Correct: (1,050−1,000)/1,000=5%.

Continue to the full loss mathematics

The detailed sections derive recovery identities and compare ruin models, costs, dependence and simulations. Each model keeps its own distribution and horizon; the small finite-horizon example above does not supply parameters for the others.

1. The derivation and the full recovery table — from −5% to −90%

Capital after a drawdown of fraction DD measured from the peak is K × (1 − DD). To get back to K, that reduced amount has to grow by the missing difference K × DD, and the return is calculated from what is left after the loss:

Z = K × DDK × (1 − DD) = DD1 − DD

K cancels and disappears, so the result depends neither on account size, nor on the instrument, nor on the rule set. This is an arithmetic identity: true by definition, with no data at all. Nothing else in this article has that status: risk of ruin and the simulation are outputs of models.

Substituting −50%: Z = 0.50 / 0.50 = 1.00, giving +100%. For −20%: Z = 0.20 / 0.80 = 0.25, giving +25%. Article 9.1 gives an abbreviated table; the full version below has two columns showing how many trades at a specified expected value are required for that return. Each of the three numerical columns uses a different base; do not mix them.

Full drawdown recovery asymmetry table: required return and trade counts under fixed cash vs fixed fractional sizing
Drawdown
(from the capital peak)
Return required to recover
(calculated from the bottom)
A) Fixed cash risk
+0.4% of starting capital
(assumption: peak = starting capital)
B) Fixed percentage of capital
+0.4% of current capital
−5%+5.3%~13~13
−10%+11.1%~25~26
−15%+17.6%~38~41
−20%+25.0%~50~56
−25%+33.3%~63~72
−30%+42.9%~75~89
−40%+66.7%~100~128
−50%+100.0%~125~174
−60%+150.0%~150~230
−70%+233.3%~175~302
−80%+400.0%~200~403
−90%+900.0%~225~577

The three columns have different bases; explaining them is the only way for the table to avoid misleading readers. Drawdown is measured from the capital path's peak. The recovery return is calculated from the trough—capital after the loss—which is why −50% requires +100% rather than +50%. Both trade-count columns assume expected value of +0.4% per trade, but use different bases.
A) Fixed risk amount: each trade contributes a mean of +0.4% of starting capital (a fixed PLN 40 with a PLN 10,000 start), regardless of current account value. Formula: N = DD / 0.004. Losses are already included in this mean: the expected sum of N outcomes is N × 0.004 × K0 and equals the missing DD × K0 exactly when N = DD / 0.004, regardless of the number of losing trades in that sequence. This uses linearity of the expected sum; it does not require each trade to yield exactly the mean. N identifies when the mean sum equals the missing amount. It is neither the mean nor median first recovery time; that needs a separate barrier-hitting model. A gross quantity: trade costs are omitted. If a non-negative cost reduces the same mean while leaving it positive, the mean-sum equality occurs later. This does not imply a lower estimate of the random first recovery time.
B) Fixed percentage of capital: the same expected value, but calculated from current equity, which is smaller after drawdown. Formula: N = ln(1/(1 − DD)) / ln(1.004). Longer than column A because each gain uses a smaller base.
Both columns give a number of trades. Converting that to time requires your trading frequency; see the example below.

Conversion into time for column B, at two frequencies. The table uses illustrative values; it assumes the average of +0.4% per trade holds for the whole recovery period, which nothing guarantees. The trade column carries the exact value from the column B formula (before rounding), so the months reproduce directly: 26.4 / 5 ≈ 5.3, 89.3 / 20 ≈ 4.5.

Estimated recovery time in months by drawdown depth and trading frequency (5 vs 20 trades/month)
DrawdownTrades (column B)At 5 trades/monthAt 20 trades/month
−10%26.4~5.3 months~1.3 months
−20%55.9~11.2 months~2.8 months
−30%89.3~17.9 months (~1.5 years)~4.5 months
−50%173.6~34.7 months (~2.9 years)~8.7 months
−70%301.6~60.3 months (~5 years)~15.1 months

The function Z = DD/(1 − DD) is increasing and convex across its whole domain from 0 to 1 — there is no threshold in it at which "something changes". The increase is continuous: between −5% and −20% the required return rises from +5.3% to +25%, between −20% and −50% from +25% to +100%, above −50% from +100% to +900%. Any threshold at which trading is to be reduced or stopped is a decision written down in advance; the formula does not suggest one. Where such a threshold comes from and how to write the resumption condition is settled by article 9.8.

One consequence reaches beyond recovery time alone: a drawdown reduces current capital, and current capital is precisely the quantity compared against the forced-closure threshold, calculated across all open positions on the account. The definitions and mechanics of those quantities belong to section 2, the effect of a gap on the execution price to article 9.10.

The increase in capital required from the trough to the previous peak: Z=DD/(1−DD). If both capital values are after costs, the increase must also be net. The formula does not determine the number of trades or the time required.
Loss and return use different basesExact loss-recovery identity; no external cash flows.Loss and return use different basesRequired return (%)010030050070090002040608090Drawdown from peak (%)Return from troughDD = 50% → return 100%Z = DD / (1 − DD)
An expanded table of ten declines from 5% to 90% and required trough-to-peak returns from 5.26% to 900%; alongside PLN 10,000–5,000–10,000 and Z=DD/(1−DD).
Ten drawdown levels, with returns rounded to two decimals. The same missing PLN 5,000 is 50% of the PLN 10,000 peak, but 100% of the PLN 5,000 trough. Enter DD as a fraction in Z=DD/(1−DD). The required return determines neither time nor probability of recovery; background charts are decorative.

A deposit does not recover a trading loss

Illustrative example: an account falls from PLN 10,000 to 8,000, then its owner deposits PLN 2,000. Balance returns to PLN 10,000, but the trading return remains −20%. Likewise, a withdrawal after profit is not a trading-induced drawdown. Before using DD/(1−DD), decide whether you are measuring investment performance without external cash flows or simply the available account amount. The latter matters for the ability to continue trading; the former for recovering performance.

2. Recovery under a fixed percentage of capital

With a fixed percentage of current equity (1% per trade), the risk amount falls with the account. Base: current equity measured before opening the position. 1% of PLN 10,000 is PLN 100; after losses, 1% of PLN 8,500 is PLN 85. The same rule gives different amounts because its base changed.

This works in both directions. The next loss takes fewer PLN, but the next win also yields fewer because both use the reduced base. Illustrative values, account in PLN, expected value +0.4 R per trade:

Compounding drawdown and recovery progression under fixed-fractional position sizing at +0.4 R expected value
Account stateCurrent capital (PLN)1% risk (PLN)Expected value +0.4 R (PLN)Change against the start
Start10 000100+40—
After a −15% drawdown8 50085+34risk amount and gain amount 15% lower
After a −30% drawdown7 00070+2830% lower
After a −50% drawdown5 00050+2050% lower

The proportion here is exact and follows directly from the definition: the gain amount shrinks at the same rate as capital. That is why column B in the section 1 table gives larger numbers than column A: at a −50% drawdown it is 174 trades instead of 125, that is 39% more. Both columns calculate the same percentage, only from a different base, and the whole difference sits in that.

Neither of the two rules is better than the other, because they answer different questions and have different consequences for position size, which is settled by article 9.5. The choice of base changes the number of trades needed to recover, so quoting "how much has to be recovered" without naming the base is incomplete.

Exactly calculated illustration: start PLN 10,000, three outcomes −1 R and four +1 R; fixed amount PLN 1,000 or 10% of current equity before every step, cost 0. This is one specified sequence with no random draws. Both versions recover above the start, but at different steps.
Two risk bases on one sequenceArithmetic illustration: starting capital PLN 10,000, three losses and four wins, without costs.Two risk bases on one sequenceCapital (PLN)700080009000100001100001234567Trade numberR = 1000 PLNr = 10% of current KSequence: −1 R, −1 R, −1 R, +1 R, +1 R, +1 R, +1 R
Exact illustration: PLN 10,000 capital, three −1 R losses and four +1 R wins. A fixed PLN 1,000 amount gives a PLN 7,000 trough and PLN 11,000 finish; 10% of current capital gives a PLN 7,290 trough and PLN 10,673.29 finish. Zero cost.
PLN 10,000 start, sequence −1 R, −1 R, −1 R, +1 R, +1 R, +1 R, +1 R, zero cost. A fixed PLN 1,000 amount and 10% of current capital produce different paths and final outcomes. Arithmetic illustration without random sampling or market measurement.

3. Risk of ruin — the formula, its assumptions and the recomputed table

Risk of ruin is the probability of capital reaching a specified lower threshold. Throughout this section, ruin means falling to 50% of starting capital or below. There is no upper target before which the threshold must be reached; the model allows trading indefinitely. Changing the threshold or horizon changes the question and result.

The model variant and the formula

The calculation below is the classical gambler's ruin model[1] in its two-outcome version: every trade ends in a gain or a loss of the same size (a reward-to-risk ratio of 1:1), the cash amount at risk is fixed, the win rate p is constant, successive outcomes are independent, and the horizon is infinite.

Pruin = (1 − edge1 + edge)N=(1 − pp)N

  • p — the win rate as a fraction; edge = 2p − 1 (a 55% win rate gives an edge of 0.10). Both forms of the formula are identical: (1 − (2p−1)) / (1 + (2p−1)) = (1 − p)/p.
  • N — the number of risk units separating current capital from the ruin threshold. At the start, with risk of 2% of starting capital and a −50% threshold: N = 50% / 2% = 25. After a drawdown the distance is measured from the current state of the account; there is an example in the exercise (section 11).
  • The result is dimensionless: it depends neither on the account currency nor on the size of capital, because all the information about capital sits inside N.

The model requires a fixed cash risk amount. Under a fixed percentage of current capital the amount shrinks together with the account, so no N from this formula describes such a path and a simulation is needed instead (section 6).

Which threshold can capital actually reach?

The formula below applies for p > 0.5; for p ≤ 0.5 the infinite-horizon probability of ruin is 1, including at a zero mean. If the current distance to the threshold is not an integer multiple of fixed amount R, use N = ⌈(K − K_ruin)/R⌉, rounding up. Capital moves on a grid spaced by R and does not stop between its points. This applies to the ±R model and a “threshold or below” condition; for variable payoffs, reconstruct their grid or simulate the path.[1]

Illustrative example: K = PLN 10,000, threshold PLN 9,050, R = PLN 300. A distance of PLN 950 gives N = 4 and a reachable lower state of PLN 8,800. Rounding to N = 3 would calculate ruin at a different threshold: PLN 9,100, still above the specified barrier.

The table — every cell reproducible from the formula above

Risk per trade as a percentage of starting capital, frozen into a fixed cash amount
Win rateEdge
2p − 1
Risk 0.5%
(N=100)
Risk 1%
(N=50)
Risk 2%
(N=25)
Risk 5%
(N=10)
Risk 10%
(N=5)
52%0.040.033%1.83%13.52%44.91%67.02%
55%0.100.0000002%0.0044%0.66%13.44%36.66%
58%0.16< 0.000001%0.00001%0.031%3.96%19.91%
60%0.20< 0.000001%0.0000002%0.0040%1.73%13.17%

How to reproduce any cell. Win rate 52%, risk 2%: (1 − 0.52)/0.52 = 0.923077; N = 50%/2% = 25; 0.92307725 = 0.13519, that is 13.52%. Win rate 58%, risk 10%: 0.42/0.58 = 0.724138; N = 5; 0.7241385 = 0.19912, that is 19.91%. The assumptions under which this table holds: ruin defined as a fall to 50% of starting capital; a reward-to-risk ratio of 1:1; a fixed cash risk amount; a constant win rate; independent outcomes; execution cost equal to zero; an infinite horizon.

Four readings from the table, none of which is a recommendation on its own:

  • At a 55% win rate and 1% risk, the model risk of ruin is 0.0044%. That looks safe on paper, but only because the model assumes a 1:1 ratio, a constant win rate, no costs and independent trades. These are model assumptions, rather than established characteristics of every actual series. An additional nonnegative cost worsens the outcome on the same path, and actual clustering of losses can increase risk; estimation error in the win rate and a ratio other than 1:1 can move it in either direction, so the direction must be checked separately each time.
  • The same 55% win rate at 5% risk gives 13.44%. A fivefold increase in risk per trade raises the model probability of ruin more than three thousand times, because N sits in the exponent.
  • A 52% win rate at 2% risk gives 13.52%. Positive expectancy and a risk of ruin of roughly one in seven sit comfortably side by side: they are two different quantities computed from the same parameters.
  • The relationship has the right direction both ways: risk of ruin rises with risk per trade and falls as the win rate rises. A cell that reverses this is an error in the table or in the formula.

The calculation for two risk levels with all other parameters unchanged

Shared parameters, illustrative values: win rate 55%, reward-to-risk ratio 1:1, ruin threshold −50% of starting capital, risk calculated as a percentage of starting capital and frozen into a fixed cash amount.

  • Risk of 1% per trade. N = 50/1 = 50. (0.45/0.55)50 = 0.818181850. Via logarithms: 50 × ln(0.818182) = −10.0335, so Pruin = e−10.0335 = 0.0000439 → 0.0044%.
  • Risk of 2% per trade. N = 50/2 = 25. 25 × ln(0.818182) = −5.0168, so Pruin = e−5.0168 = 0.006626 → 0.66%.
  • The difference: doubling risk per trade raises the model risk of ruin 151-fold, at an unchanged win rate and an unchanged reward-to-risk ratio. Expectancy in R units does not change at all.

Scope of the calculation. Payoffs of ±R and a fixed risk amount are necessary for this formula. With a fixed percentage of current equity and positive multipliers, the account cannot reach zero in finitely many steps, but can cross a positive ruin threshold. Constant win rate and independence are assumptions rather than statements about the market. A non-negative cost deducted on the same paths at the same R cannot improve capital. A finite horizon restricts possible ruin times, so its probability cannot exceed the infinite-horizon probability. Dependence, win-rate error and changed payoffs can, however, act in either direction; the formula alone does not determine it.

The condition without which this calculation does not apply. The formula assumes positive expected value. With negative expected value and an infinite horizon, ruin probability is 1 regardless of position size; reducing risk per trade only extends the time to ruin. For a 45% win rate and a 1:1 ratio (expected value −0.10 units per trade), a fixed risk amount based on starting capital and a −50% threshold, expected trades to ruin follow from Wald's identity: E[T] = N / |EV|, where N is the number of units between the start and threshold. At 1% risk, N = 50 and E[T] = 50 / 0.10 = 500; at 2% risk, 250, and at 5%, 100.
Model risk of ruin at a reward-to-risk ratio of 1:1, a fixed cash risk amount, a constant win rate, independent outcomes and a ruin threshold of −50% of starting capital. Outside those assumptions the values do not hold.
Model risk of ruin: the same assumptionsMap of five fixed risk amounts and four win rates.Model risk of ruin: the same assumptionsRuin: K ≤ 50% K₀ · fixed amount · ±R · horizon ∞0.5%1%2%5%10%p=52%0.0334%1.828%13.52%44.91%67.02%p=55%<10⁻⁶%0.00439%0.6626%13.44%36.66%p=58%<10⁻⁶%0.000010%0.0313%3.965%19.91%p=60%<10⁻⁶%<10⁻⁶%0.00396%1.734%13.17%Each cell: ((1 − p)/p)ᴺ, N = 0.5/rCost 0; independent outcomes; p>0.5. A model result.

Checking the formula without random draws. The solution satisfies the recurrence h(i)=p h(i +1)+(1−p)h(i −1), boundary condition h(0)=1 and limit h(i)→0 for p>0.5: substituting h(i)=((1−p)/p)^i makes the right side exactly equal to the left. For p≤0.5, the infinite-horizon probability solution is 1. The table gives probabilities for this model.

Interactive Risk-of-Ruin & drawdown recovery calculator

Compare infinite-horizon 1:1 Gambler’s Ruin against exact finite-horizon recurrence HT(N) for any reward-to-risk ratio and execution cost. Defaults reproduce the 52% win rate, 1:1 ratio, 2% fixed cash risk to −50% barrier row (13.52% infinite-horizon ruin).

4. Risk of ruin at a ratio other than 1:1

Section 3's formula describes a bet with equal win and loss sizes. A rule set with a 38% win rate and 1:3 ratio does not meet that condition; substituting its win rate into the 1:1 formula gives an edge of 2 × 0.38 − 1 = −0.24 and the conclusion “certain ruin”, whereas this set's expected value is 0.38 × 3 − 0.62 = +0.52 R. The formula is not wrong; it has been applied beyond the scope in which it means anything.

Unequal payoffs: calculate the transition probability

The Kelly fraction does not replace the edge in a ruin formula. It optimises a different quantity, so similar symbols do not justify that substitution. With a fixed risk amount and payoffs +aR and −bR, an exact recurrence can be constructed. Let H_t(x) denote the probability of crossing the lower threshold within at most t further steps from a distance x above it. Then H_0(x)=0 for x>0, H_t(x)=1 for x≤0, and for x>0:

H_t(x)=p H_(t −1)(x +aR)+(1−p) H_(t −1)(x −bR).

This follows by splitting the first trade into a win and a loss, as in Section 3's classic model.[1] The value of t must be specified. For rational payoffs on a common grid, finitely many steps give finitely many states, so no guessed formula or upper capital truncation is needed. A fixed cost can be deducted from both payoffs using the same procedure.

Check sensitivity to joint parameter errors using the same threshold, horizon and risk-amount rule. Worsening an illustrative pair from p=55%, RR=1.5 to p=52%, RR=1.2 requires two separate H calculations. The Kelly criterion and its fraction's sensitivity have their own calculation in 9.5; they do not approximate ruin probability.

Simulation gives a more reliable answer. The following table comes from a simulation performed for this article: 40,000 paths of at most 500 trades, NumPy PCG64 generator with seed 20261005, two-outcome payoffs with specified win rate and ratio, fixed percentage of current equity, ruin defined as falling to 50% of starting capital (where the path stops), and zero execution costs. All values are illustrative. Parameters p and RR are supplied as inputs; neither describes the market.

40,000-path Monte Carlo maximum drawdown percentiles and −50% ruin counts across asymmetric reward-to-risk ratios
Input parametersExpectancy
p × RR − (1 − p)
Risk 1%:
median / 95th percentile
max. drawdown
Risk 2%:
median / 95th percentile
Risk 5%:
median / 95th percentile
Risk of ruin
at 1% / 2% / 5%
win rate 62%, ratio 1:0.8+0.116 R10.2% / 17.1%19.7% / 31.9%44.1% / 63.3%0 / 40 000
3 / 40 000 (0.0075%)
1197 / 40 000 (2.9925%)
win rate 48%, ratio 1:1.8+0.344 R10.7% / 16.7%20.3% / 30.8%45.0% / 62.3%0 / 40 000
1 / 40 000 (0.0025%)
354 / 40 000 (0.8850%)
win rate 38%, ratio 1:3.0+0.520 R12.6% / 19.4%24.2% / 35.6%51.5% / 68.7%0 / 40 000
0 / 40 000
688 / 40 000 (1.7200%)
win rate 32%, ratio 1:4.5+0.760 R14.1% / 21.3%26.8% / 38.4%56.0% / 72.3%0 / 40 000
0 / 40 000
863 / 40 000 (2.1575%)

Our simulation: 40,000 paths of at most 500 trades, fixed percentage of current equity, ruin threshold −50% of starting capital, execution costs omitted, independent outcomes and a two-point distribution (win +RR, loss −1 R). The path ends on its first fall to the ruin threshold or after 500 trades; maximum-drawdown percentiles include stopped paths. The 95th percentile of maximum drawdown is not the worst case—the quantile itself does not bound the depth of the remaining approximately 5% of paths. A particular model's boundaries follow separately from its payoffs, horizon and stopping rule. Expected value in column two is gross; Section 8 gives the version after execution costs. With a distribution other than two-point, the same p and RR give different drawdowns.

The table separates two questions. Ruin means falling below half of starting capital, while maximum drawdown uses the highest previous capital. Drawdown can therefore exceed 50% from a new peak without reaching the ruin threshold. The small ruin count at 1% and 2% applies only to these four distributions and 500 steps. It does not prove the event is unreachable. At 5%, both the drawdown distribution and barrier-crossing count change markedly; a higher mean alone does not rank these results.

Zero simulated ruins still leaves uncertainty

If M independent paths contain no ruin, record 0/M. The one-sided 95% upper probability bound in this fixed model follows from (1−u)^M=0.05: u=1−0.05^(1/M). For M=40,000, it is approximately 0.00749%; for 30,000, 0.00999%. This bound describes simulation sampling error. It excludes an incorrect win rate, missing extreme losses and an inappropriate dependence model.

The probability of encountering k consecutive losses in N trades is a separate question with an answer different from (1 − p)k; its calculation for a specified win rate and sequence length is in Article 9.1, Section 4; Article 9.3 uses the assumed streak length as an input when deriving the risk limit.

Point estimates of MDD quantiles for p=38%, exact +3 R and −1 R payoffs and zero cost. At 1% risk: 12.6% and 19.4%; at 2%: 24.2% and 35.6%; at 5%: 51.5% and 68.7%. An illustrative article model, rather than market measurement.
Values from the section 4 simulation: p=38%, exact +3 R/−1 R payoffs, 40,000 independent paths of at most 500 trades, NumPy PCG64, seed 20261005, fixed fraction of current capital and zero cost. Paths stopped on reaching 0.5 K₀ are included. Points mark median and 95th-percentile MDD; connecting them creates no safety interval. The quantile does not limit the remaining 5% of paths.

5. The order of outcomes — the same set, two runs

Section 8 leaves a promise to be settled here: the order of outcomes matters for the path, though it does not matter for the end point. That sentence can be checked with arithmetic on ten numbers.

Both paths have identical outcomes—four wins (+2 R, +2 R, +1.5 R, +1.5 R) and six losses of −1 R, totalling +1 R over ten trades, a mean of +0.10 R. Sizing rule: a fixed percentage of current equity, 1% per trade. Starting capital 100 units; the result is dimensionless, so unit count does not matter. Limit specified in advance: drawdown of −5% from the peak.

Sequence-of-returns risk: identical 10-trade outcomes in different order relative to a −5% drawdown limit
No.Run A: R outcomeRun A: capitalRun A: drawdownRun B: R outcomeRun B: capitalRun B: drawdown
1+2.0102.0000.00%−1.099.0001.00%
2+1.5103.5300.00%−1.098.0101.99%
3−1.0102.4951.00%−1.097.0302.97%
4+2.0104.5450.00%−1.096.0603.94%
5−1.0103.4991.00%−1.095.0994.90%
6+1.5105.0520.00%−1.094.1485.85% — limit breached
7−1.0104.0011.00%+2.096.0313.97%
8−1.0102.9611.99%+2.097.9522.05%
9−1.0101.9312.97%+1.599.4210.58%
10−1.0100.9123.94%+1.5100.9120.00%

Drawdown measured from the peak of the equity path, after every trade. Capital after a trade: K × (1 + 0.01 × R). Rounding in the table to three decimal places; the calculation itself is carried out without intermediate rounding.

The end point is identical to the decimal place: 100.912 in both runs, that is +0.912%. That agreement has a purely arithmetic cause. Final capital under a fixed percentage is the product K0 × Π(1 + 0.01 × Ri), and multiplication is commutative — the order of the factors does not change the product. Under a fixed cash risk amount the same holds, only through the commutativity of addition.

Everything else differs. Maximum drawdown is 3.94% in run A and 5.85% in run B, half as much again on the same ten outcomes. The −5% limit is breached in run B on the sixth trade, and in run A it is not breached once. If the limit triggers a halt to trading, then on the same set of outcomes one run ends on the tenth trade at +0.912%, and the other is cut short on the sixth at −5.85% — and the four gains that are in the set are never realised.

The practical conclusion has two layers. The sample's arithmetic mean does not describe the order of outcomes. Two orderings of the same set of outcomes have identical final capital here, but can have entirely different drawdowns. A drawdown measured on one historical sequence is therefore one realisation from a family of possible paths; randomising the order lets us explore that family — the subject of the next section.

6. Simulating the distribution of outcomes — what is drawn and what the result does not say

A historical test shows one sequence: the one that occurred. Monte Carlo simulation builds a distribution of possible paths from the same material; two operations often described with one word must be separated. Permutation rearranges exactly the same outcomes: composition and ending value stay unchanged, and only the path changes. This is a pure sequence-risk test, performed manually in Section 5. Sampling with replacement treats the sample as a distribution from which new lists are drawn: some observations are omitted and others repeated, so each path's composition and ending value also change. Section 7 uses sampling with replacement.

What is drawn: one trade outcome in R units, from an empirical distribution built from your records (with replacement) or a two-point distribution specified by win rate and reward-to-risk ratio. Independence assumption: each draw is independent of the previous one; check this separately on the outcome series for a particular rule. Number of repetitions: more repetitions give more stable percentiles; this article uses 40,000 in Section 4 and 30,000 in Section 8, always reported beside the results. The following chart shows three pointwise quantiles from an explicit lognormal approximation, rather than eight randomly drawn paths.

Four quantities are read off the distribution:

  • The median maximum drawdown: the drawdown above which half the runs fall. It is neither a forecast nor a limit.
  • 95th percentile of maximum drawdown. This is not the worst scenario. Around 5% of model paths have deeper drawdown. The quantile itself does not bound the remaining paths; a specified model's limits are a separate matter. Price-gap events are covered in Article 9.10.
  • Risk of ruin: the share of runs in which capital fell to a given threshold. A quantity dependent on the threshold: without a stated threshold it is meaningless.
  • The spread of the final result, that is the interval containing a given share of runs at unchanged parameters. It does not answer the question of how large the profit will be.
Pointwise 5th, 50th and 95th capital percentiles from a lognormal approximation: p=55%, exact payoffs +1.5 R/−1 R, risk 1% of current equity, start PLN 10,000, independence, cost 0 and horizon 300 trades. The mean log return is 0.0036661 and its standard deviation 0.0124068 per step; after 300 steps, the quantiles are approximately PLN 21,092, 30,036 and 42,774. A quantile line joins distribution results at successive times; it is not one account's path. Some outcomes lie outside the band.
Pointwise quantiles are not a pathPointwise quantiles from a lognormal approximation, starting at PLN 10,000. They are not loss limits.Pointwise quantiles are not a pathCapital (PLN)100002000030000400000100200300Number of trades5th percentile50th percentile95th percentilep=0.55; +1.5 R/−1 R; r=1%; no cost

In a sum of independent outcomes with constant, finite variance, standard deviation grows with the square root of the number of trades, while the expected sum grows linearly. This is not a universal rule for every distribution range or for capital under fixed percentage risk. Extending the same path cannot reduce its recorded maximum drawdown, although it need not deepen it. Knowledge of the parameters is a separate matter: a longer independent sample narrows the estimation error of the mean as 1/√n (section 9), and the two directions are not in conflict, because they answer two different questions.

Two numbers that are easy to confuse have to be kept apart here, because both are a "number of trades". The length of a single run in the simulation is a choice of horizon: 500 trades is the question "what can happen over 500 trades". The size of your own sample is the number of trades the input distribution is built from, and only that decides how precisely you know the parameters. Drawing 500 outcomes from a pool of one hundred creates no new information: the confidence interval for expectancy stays whatever follows from one hundred observations (section 9).

Conceptual capital path reaching a new peak, then declining to a trough still above 0.5 of starting capital. MDD uses the highest previous capital; ruin is tested against the fixed 0.5 K₀ threshold. No measurement, simulation or forecast.
MDD=max(1−Kₜ/peakₜ); ruin occurs if Kₜ≤0.5 K₀ at least once. The peak changes over time, while the starting-capital barrier stays fixed. The diagram explains these two definitions; it presents neither simulation results nor market data.

Two means do not reconstruct variance

If p is the frequency of wins, group means are W and −L, and their variances are v_w and v_l, then Var(X)=p v_w +(1−p)v_l +p(1−p)(W +L)². A two-point distribution keeps only the final term. With p=0.5 and W=L=1 R, its variance is 1 R². If half the wins are +0.2 R and half +1.8 R, with analogous negative losses, group means remain ±1 R but variance becomes 1.64 R². Variance is larger, but that still does not imply every drawdown quantile or every barrier's ruin probability must increase.

7. The simulation step by step

Running the simulation needs nothing beyond a list of your own outcomes in R units and a tool that can draw at random. A spreadsheet is enough for a few hundred runs; beyond that a short script is more convenient.

a) Inputs

A simulation is only as good as its input list. Each closed trade needs one outcome in R units, calculated after costs: R = (account-currency outcome after commission, swap points and slippage) / (risk amount planned at entry). The denominator is planned rather than realised risk, so a loss with slippage is worse than −1.00 R and appears in the distribution. A positive outcome is net profit in the same units.

b) The procedure

  1. Build a list of outcomes in R units from your own records, one per closed trade.
  2. Draw with replacement. Set the length of a single run to the horizon you are asking about. If you are asking about the distribution of drawdowns on the sample you already have, set it equal to the size of your own sample; the confidence interval for the parameters does not narrow because you draw more.
  3. Recompute capital after every drawn trade according to your own position-sizing rule: under a fixed percentage K ← K × (1 + r × R), under a fixed cash amount K ← K + amount × R.
  4. Repeat often enough for the percentiles to stop changing between runs, usually a few to a few tens of thousands of runs.
  5. Read off the median and the 95th percentile of maximum drawdown, the share of runs below the ruin threshold and the spread of the final result. Write all the assumptions down alongside them; a month later they alone will let you reconstruct where the numbers came from.

c) What exactly each of those numbers says

Guide to interpreting Monte Carlo median drawdown, 95th percentile drawdown and barrier-crossing probabilities
QuantityWhat it saysWhat it does not say
Median final resultHalf the runs end above it, half below — at unchanged parametersNothing about the result of your one run, nor about whether the parameters will hold
5th percentile of the final result5% of runs end below this valueHow far below — a quantile describes nothing that lies beyond it
Median maximum drawdownThe drawdown above which half the runs fallIt is not a limit, nor a value to "expect" in a single trial
95th percentile of maximum drawdownThe drawdown exceeded in 5% of runsIt is not the worst case; beyond it the calculation does not bound the loss
Risk of ruin at a given thresholdThe share of runs in which capital fell to the thresholdNothing without a stated threshold, horizon and position-sizing rule

There is deliberately no acceptability threshold in that table. "Risk of ruin below 1%" is a choice, not a result, and the choice depends on what percentage of capital you are able to take out of use and for how long. Writing such a threshold down together with the halt and resumption condition belongs to article 9.8.

d) The script

Replace the outcome array with your own values in R units. The script works in two modes: on outcomes already calculated after costs, or on gross outcomes with the cost added as a random parameter.

import numpy as np

def simulate(outcomes_R, repetitions=20_000, length=None,
             risk=0.01, ruin_threshold=0.50,
             outcomes_already_net=True,
             cost_R_mean=0.06, cost_R_sd=0.02,
             seed=7):
    """
    Outcome distribution sampled with replacement from your list of R outcomes.

    ASSUMPTIONS that this code adopts but does not test:
      - successive outcomes are independent (an assumption to check);
      - parameters remain constant over the entire horizon;
      - future outcomes have the same distribution as the sample.

    length=None -> path length equals your sample size.
       A longer path asks about a different horizon;
       it does NOT narrow the confidence interval for the parameters.

    outcomes_already_net=True -> the list is net; no costs are added.
    outcomes_already_net=False -> subtract independent cost max(0, Normal(mu,sigma)).
       mu and sigma describe the normal distribution BEFORE flooring,
       rather than the mean and standard deviation of the floored cost.
       Dependence between cost and outcome is not modelled.
       Do not apply both approaches: that counts costs twice.
    """
    rng = np.random.default_rng(seed)   # seed makes the draws reproducible
    outcomes_R = np.asarray(outcomes_R, dtype=float)
    if outcomes_R.ndim != 1 or not len(outcomes_R) or not np.all(np.isfinite(outcomes_R)):
        raise ValueError("Provide a non-empty, finite list of outcomes")
    if not (0 < risk < 1) or not (0 < ruin_threshold < 1):
        raise ValueError("Risk and threshold must be in (0,1)")
    if length is None:
        length = len(outcomes_R)
    if repetitions < 1 or length < 1 or int(repetitions) != repetitions or int(length) != length:
        raise ValueError("Length and repetitions must be positive integers")
    if cost_R_sd < 0:
        raise ValueError("Cost standard deviation cannot be negative")
    if risk * np.min(outcomes_R) <= -1 and outcomes_already_net:
        raise ValueError("The model requires a positive capital multiplier")

    ruins = 0
    max_drawdowns = []

    for _ in range(repetitions):
        capital = 1.0          # the result is dimensionless
        peak = 1.0
        max_drawdown = 0.0
        sample = rng.choice(outcomes_R, size=length, replace=True)

        for outcome in sample:
            if not outcomes_already_net:
                cost = max(0.0, rng.normal(cost_R_mean, cost_R_sd))
                outcome = outcome - cost

            multiplier = 1 + risk * outcome
            if multiplier <= 0:
                raise ValueError("The outcome with cost is outside the model's domain")
            capital *= multiplier     # fixed percentage of current equity
            peak = max(peak, capital)
            max_drawdown = max(max_drawdown, (peak - capital) / peak)

            if capital <= (1 - ruin_threshold):
                ruins += 1
                break

        max_drawdowns.append(max_drawdown)

    return {
        "risk of ruin": ruins / repetitions,
        "median maximum drawdown": float(np.median(max_drawdowns)),
        "95th percentile maximum drawdown": float(np.percentile(max_drawdowns, 95)),
        "path length": length,
        "sample size": len(outcomes_R),
    }

# Synthetic values (a runnable example): replace them with your outcomes
# in R units, after costs, one per closed trade:
my_outcomes = np.array([
    -1.05, 1.78, -1.02, 2.25, -1.11, 1.46, -1.03, -1.07, 3.02, -1.00,
    -1.09, 0.74, -1.02, -1.14, 2.03, -1.06, 1.35, -1.01, -1.08, 2.71
])
print(simulate(my_outcomes, risk=0.01))

Starting capital is set to 1. The ruin threshold is a fraction of that value, while maximum drawdown is measured from the current peak; account currency changes neither ratio. The line capital *= (1 + risk * outcome) represents a fixed percentage of current equity; replace multiplication with addition for a fixed risk amount. The default cost of 0.06 R is illustrative and can be many times higher with a short protective-exit distance; Section 8 shows how it enters the calculation. The list my_outcomes contains twenty values solely to make the code runnable; these are neither market measurements nor a sample sufficient to demonstrate parameter stability. The code's random cost is independent of the outcome and floored at zero; its parameters describe the normal distribution before flooring.

Diagram: sample outcome X in R, update capital K at fraction r, update peak S, then maximum drawdown MDD. Separately check capital against 0.5 K₀. Count cost exactly once.
With a fixed fraction: K←K(1+rX), S←max(S,K), MDD←max(MDD,1−K/S). Separately record whether capital ever reaches the 0.5 K₀ barrier. X must be a net outcome, or cost must be deducted once. The diagram describes a procedure rather than simulation results.

8. Execution cost as an input parameter

Expectancy is what enters the risk-of-ruin formula and the simulation. If it enters in its gross version, the result is gross too, and the difference is not cosmetic, because the cost burdens every trade separately, the losing ones included. This article does not describe where those components come from or what they depend on: that is done by section 2, while execution conditions at brokers are covered by sections 11–13. Here the cost is a single input number and all that matters is what it does to the calculation.

The same cost in pips takes a larger fraction of R when the protective exit is closer to entry; position size and exit distance are addressed in Article 9.5. Below, cost enters as an already calculated number in R units.

The conversion: the same parameter set gross and net

Illustrative inputs: position on a major pair, 50-pip protective-exit distance, position held over four nights, planned risk 1 R. Each cost component is listed separately:

  • full spread for the round trip—the difference between buying at entry and selling at exit, 4 pips relative to a 50-pip distance: −0.08 R. Account for spread exactly once; splitting it into “entry” and “exit” at its full value would count the same cost twice
  • assumed slippage: −0.03 R
  • swap points over four nights: −0.08 R
  • total: −0.19 R per trade, whether it ends in profit or loss

Effect on one trade: a gross win of +1.80 R gives net +1.61 R, and a gross loss of −1.00 R gives net −1.19 R. Cost affects both outcomes in the same direction.

The effect on expectancy at a 55% win rate:

  • gross: 0.55 × 1.80 − 0.45 × 1.00 = 0.99 − 0.45 = +0.540 R
  • net: 0.55 × 1.61 − 0.45 × 1.19 = 0.8855 − 0.5355 = +0.350 R
  • difference: −0.19 R, a reduction of 35.2% in gross expected value—exactly the unit cost, because a cost charged on each trade reduces expected value by its full amount.

Effect on the outcome distribution—our simulation, 30,000 paths of at most 500 trades (stopped on first reaching the threshold), fixed percentage of current equity, ruin threshold −50%:

Effect of execution cost per trade on 30,000-path Monte Carlo drawdown quantiles and −50% ruin counts
VariantExpectancyRisk 1%:
median / 95th percentile max. drawdown
Risk 2%:
median / 95th percentile
Risk of ruin (−50%)
gross (cost omitted)+0.540 R7.9% / 11.8%15.4% / 22.3%0 / 30,000 at 1% and 2%
net (cost 0.19 R)+0.350 R10.9% / 16.8%20.9% / 31.6%0 / 30,000 at 1% and 2%

Both versions use the same drawn outcome signs: p=0.55, gross payoff +1.8 R or −1 R, net cost 0.19 R per step. PCG64 generator, seed 20261005; 30,000 independent paths of at most 500 steps, stopping at capital≤0.5 of starting capital, MDD percentiles from the current peak with linear interpolation. The median at 1% rises from 7.93% to 10.92%, and at 2% from 15.35% to 20.91%. In each version, 0/30,000 paths reached ruin; this does not prove zero probability. Check other outcome dependence separately.

Gross mean +0.540 R, cost 0.190 R per trade, net mean +0.350 R. Alongside, median maximum drawdown from the peak in an actual replication of 30,000 paths of at most 500 steps at r=1%, PCG64, seed 20261005. The ruin barrier is half of starting capital.
Cost changes the mean and drawdown distributionA cost of 0.19R deducted at every step, PCG64 generator, seed 20261005.Cost changes the mean and drawdown distributionMean in RGross: +0.540 RCost: 0.190 RNet: +0.350 RMDD from replicationsGross: median 7.93%Net: median 10.92%Ruins: 0 / 30,000p=55%; +1.8 R/−1 R; risk 1% of current K500 steps; independence; stop at K≤0.5 K₀MDD from the peak; ruin barrier from starting capital.0 ruins does not imply zero probability.
Conceptual Ask and Bid paths before and after an event, Bid activation of a long-position stop loss, and a 4- versus 8-pip cost calculation at D=50 pips.
Hypothetical example without a price scale or data from a particular release. We show a long-position stop loss activated by Bid; the activation condition depends on the service and the fill price can differ. Cost calculation at D=50 pips: 4/50=0.08 R, 8/50=0.16 R, difference 0.08 R. Curve spacing is schematic rather than measured. Count spread once.
Arithmetic example in R: spread 0.08, slippage 0.03 and financing 0.08 give total cost of 0.19 R. A gross +1.80 R win becomes net +1.61 R; a gross −1.00 R loss becomes net −1.19 R. These are not actual account data.
The example’s 0.19 R cost comprises 0.08 R spread, 0.03 R slippage and 0.08 R financing. Deduct it from both wins and losses: +1.80 R→+1.61 R; −1.00 R→−1.19 R. Outcome bars share one scale. Financing cost is an illustrative assumption rather than a constant property of every trade.

9. How many trades stand behind a parameter estimate

The win rate and reward-to-risk ratio entered in Section 3's formula are sample estimates with error. The half-width of a 95% confidence interval for expected value is 1.96 × σ / √n, where σ is the standard deviation of one outcome in R units and n is observation count. Below, assume σ = 1.5 R illustratively:

95% confidence interval half-width for expected value (1.96 × σ / √n) by sample size at σ = 1.5 R
Number of tradesHalf-width of the confidence intervalMeaning for estimated expected value +0.10 RMeaning for +0.40 R
30±0.54 Rinterval −0.44 R to +0.64 R−0.14 R to +0.94 R
100±0.29 R−0.19 R to +0.39 R+0.11 R to +0.69 R
200±0.21 R−0.11 R to +0.31 R+0.19 R to +0.61 R
400±0.15 R−0.05 R to +0.25 R+0.25 R to +0.55 R
1 000±0.09 R+0.01 R to +0.19 R+0.31 R to +0.49 R

Calculation: 1.96 × 1.5 / √n. For n = 100: 1.96 × 1.5 / 10 = 0.294. With standard deviation greater than 1.5 R (possible at a 1:3 ratio, but also dependent on win rate and within-group dispersion), the same intervals require correspondingly larger samples. The formula assumes independent observations and a normal approximation for the mean (central limit theorem), so the interval is indicative for small samples and highly skewed outcome distributions; σ = 1.5 R is assumed illustratively. Positive outcome dependence can widen the interval, while negative dependence can narrow it; lack of independence alone establishes no direction. When σ is replaced by sample standard deviation s, the standard interval uses Student's t distribution; the normal approximation below assumes known illustrative σ.[8]

Read the four-hundred-trade row carefully. Significance relates effect size, its error and the chosen level; trade count alone does not determine it. At a half-width of ±0.15 R, an estimate of +0.10 R gives an interval of −0.05 R to +0.25 R, including zero: after four hundred trades, such a result cannot be distinguished from no edge. For expected value around +0.10 R to exclude zero at σ = 1.5 R requires n > (1.96 × 1.5 / 0.10)² ≈ 864 observations. For +0.40 R, the same table looks entirely different: a hundred suffice.

The answer to "how many trades" is therefore: it depends on how large an effect you want to distinguish from zero and how dispersed your outcomes are. Any threshold quoted without those two numbers, whether one hundred, two hundred or five hundred, is a custom rather than the result of a calculation.

A narrowing interval around a +0.10 R mean. With known σ=1.5 R, approximate 95% intervals are −0.194 to +0.394 R for n=100 and −0.047 to +0.247 R for n=400; both include zero.
Separate statistical example: estimated mean +0.10 R, known illustrative σ=1.5 R, independent observations and a 95% normal approximation. Half-width 1.96σ/√n falls from 0.294 to 0.147 R as n rises from 100 to 400. Both intervals still include zero. Quadrupling n reduces half-width, without guaranteeing profit or a smaller actual error. Curves are schematic; numerical bounds appear in the panels. For estimated σ, see the Student’s t variant in section 9.
What happens at thirty trades. Estimated expected value +0.30 R at σ = 1.5 R gives an interval of −0.24 R to +0.84 R. It includes both a loss-making rule set and one doubling capital in several dozen trades, all within one sample. At two hundred trades, the same result gives +0.09 R to +0.51 R: still wide, but excluding zero. An entry or exit rule change that alters the outcome distribution requires identifying observations before and after it; earlier data do not automatically describe new rules. Changing only the capital fraction allocated to a position need not invalidate a sample of R outcomes if scale and costs leave that distribution unchanged. It does change the capital path, which must be recalculated.

10. What this calculation does not say

A formula used outside its range

Substituting the win rate into a 1:1 formula when the ratio is 1:3 gives a meaningless result: at a 35% win rate, edge is 2 × 0.35 − 1 = −0.30 and the conclusion “certain ruin”, while this set's expected value is 0.35 × 3 − 0.65 = +0.40 R. The formula remains correct; it was applied to a bet it does not describe. Applicability is as much a part of a formula as its right-hand side.

Expectancy substituted in its gross version

Execution cost affects every trade, including losers, so reduces expected value by exactly its amount: Section 8 uses 0.19 R, or 35.2% of gross value. Risk of ruin calculated on gross value is a lower estimate.

The assumption that outcomes are independent

Sampling individual outcomes with replacement assumes independence between consecutive trades. Conditional-volatility models such as Engle's ARCH describe variance dependence; the 1982 paper studied British inflation.[4] It does not imply that a particular currency rule's outcomes must cluster into losing streaks. If such clustering occurs, individual sampling removes it. With alternating dependence, it can instead generate longer streaks than the actual mechanism. Check the direction on the same rule's outcomes.

The same win rate, two different streak mechanisms

Illustratively, let the long-run loss frequency be q=0.4. In the independent model, the probability of two losses in a specified block is 0.4²=0.16. In a stationary model with P(loss after loss)=0.6 and P(loss after win)=0.2667, it is approximately 0.4×0.6=0.24. With transitions of 0.2 and 0.5333, it falls to 0.4×0.2=0.08, although the win rate remains 60%. Keeping the same mean and frequency does not determine streak length. This counters the claim that every dependence worsens an independent simulation's result.

A distribution built from what has already happened

Sampling your own data reproduces only the outcomes it contains. The limitations of normal models are also discussed in the supplementary reading[2]. We do not credit that book with measuring the tails of a particular series or assume one exchange-rate change distribution here. A separate scenario can contain a loss many times larger than planned; if the sample contains no such observation, simulation will never generate it—even with a million paths. Sampling this dataset cannot reproduce an absent extreme-loss episode. This does not imply a universal direction of error for every quantile; therefore supplement the result with an explicit scenario missing from the sample. A practical supplement is a separate conditional calculation: one result assuming one trade in two hundred ends at −5 R, and another assuming one in five hundred ends at −10 R. That calculation says only how much one such event takes from capital.

Why this is not merely a theoretical caveat. Two documented currency-market events—the Swiss National Bank's discontinuation of the EUR/CHF minimum rate on 15 January 2015[7] and sterling's sharp fall on 7 October 2016[3]—show why a sample without such an episode cannot describe its effects. We derive neither clients' execution prices nor the boundaries of every possible sample from these reports; losses and the source scope for these episodes are covered in Article 9.10.

The assumption that parameters are stable

The win rate and reward-to-risk ratio entered into the formula come from the past and carry the estimation error discussed in section 9. The model treats them as constants. If they change over time, also recalculate variants using several explicitly selected subperiods and state the selection criterion. A subperiod with a lower mean or longer losing streaks can worsen a particular result, but the parameters need not move together. This is sensitivity analysis, rather than proof that the worst historical window predicts the future better. Assessing whether a rule set still works belongs to section 8; this article only calculates the consequences of specified parameters.

Gambler’s ruin model with fixed PLN 360 amounts: current capital PLN 15,600, threshold PLN 14,400. The PLN 1,200 distance requires four units because N rounds up. The first reachable state below the threshold is PLN 14,160. At p=54%, the model gives 52.66% ruin risk.
Section 11 exercise: N=⌈(15,600−14,400)/360⌉=4. Capital changes by fixed ±PLN 360 amounts, so the first reachable state at or below the threshold is PLN 14,160. In an infinite-horizon model of independent ±R payoffs, constant p=0.54, zero cost and no upper target, P=(0.46/0.54)⁴=52.66%. This is a model probability rather than a measurement of any strategy’s risk.
Five separate mechanisms affecting the calculation. The numbers do not identify additive risk components or rank importance. Section 8 covers costs; a larger gap, margin change and changed distribution require separate assumptions.
What needs changing in the calculation inputsFive separate mechanisms; they are not additive probability layers.What needs changing in the calculation inputsModel dispersionSpecified payoffs and dependenceCostIncluded in the outcome onceGap beyond the modelSeparate loss scenarioMargin changeSeparate account constraintParameter changeUncertainty in p and distributionMore paths reduce sampling error, not model error.

The mean path is not the first recovery time

Columns A and B in Section 1 show when a deterministic mean-capital path reaches the old peak: with a fixed amount and a multiplier of 1+0.004, respectively. They are neither the mean nor median first recovery time of an individual account. That time depends on the entire distribution and path; some paths may not recover within the horizon. In simulation, record first recovery time separately and report the share of paths without recovery rather than exclude them from the mean time.

11. Self-check exercise

The data are different from everything used above. Work it out yourself before looking at the solution.

Task. Account in PLN. Starting capital PLN 24,000, also the path's peak. After losses, current equity is PLN 15,600. Win rate estimated from your records: 54% over 100 closed trades. For this exercise, assume exact outcomes of +1 R or −1 R. Reward-to-risk ratio: 1:1. Risk per trade: 1.5% of starting capital, frozen as a fixed amount. Define ruin as a 40% decline from starting capital.

  1. Calculate percentage drawdown and the return required to regain the peak—in percent and PLN.
  2. Estimate the risk of ruin for the stated risk per trade, and then for risk doubled to 3%.
  3. List the assumptions under which your result from point 2 holds, and state the direction in which each of them fails.
  4. Repeat point 2 on your own numbers: your own risk per trade, your own ruin threshold and the win rate from your own records.

Space for your result: drawdown ____ % · required return ____ % · ____ PLN · risk of ruin at 1.5% ____ % · at 3% ____ %.

Solution.

Point 1. Drawdown from the peak: (24 000 − 15 600) / 24 000 = 8 400 / 24 000 = 0.35, giving −35%. Required return: Z = 0.35 / (1 − 0.35) = 0.35 / 0.65 = 0.5385, giving +53.8%. In PLN: PLN 8,400 is missing, calculated against PLN 15,600, giving 8 400 / 15 600 = 53.8%; agreement between these methods checks the arithmetic. This is the required capital increase from trough to peak. If both states are after costs, you must earn PLN 8,400 net; do not add cost again to the ratio itself. The formula says neither how many gross outcomes nor how much time are needed for that increase.

Point 2. Model: gambler's ruin, 1:1 ratio, fixed risk amount, infinite horizon. Ratio: (1 − 0.54)/0.54 = 0.46/0.54 = 0.851852. N is counted from current equity to the ruin threshold because part of the distance has already been travelled. Threshold: 24,000 × (1 − 0.40) = PLN 14,400. Risk amount: 1.5% × 24,000 = PLN 360 (fixed, from starting capital). Distance: 15,600 − 14,400 = PLN 1,200.

  • 1.5% risk: N=⌈1200/360⌉=4. First reachable state at or below the threshold: PLN 14,160; (0.46/0.54)^4=0.526570, giving 52.66%.
  • 3% risk: R=PLN 720, N=⌈1200/720⌉=2; (0.46/0.54)^2=0.725652, giving 72.57%. Doubling the risk amount increases the result by 19.91 percentage points, approximately 1.38 times.
  • At the start with R=PLN 360, the distance is PLN 9,600, so N=⌈9600/360⌉=27 and the result is 1.32%. Reaching PLN 15,600 increased conditional risk from the current state approximately fortyfold. The exponent works the same at every N; the distance to the barrier changed.

Point 3. The result assumes ±R payoffs, a fixed risk amount, constant win rate p=0.54, independence, zero costs and an infinite horizon. The theoretical standard deviation for this distribution is σ=√(1−0.08²)=0.9968 R, rather than 1.5 R. The normal approximation to uncertainty in the mean at 100 observations has a half-width around 0.195 R; it describes uncertainty in p, omitted from the ruin result above. An additional non-negative cost worsens the same path, while a finite horizon reduces opportunities for ruin. Dependence and parameter changes can act in either direction. For p≤0.5 in this ±R model, infinite-horizon ruin probability is 1, although the mean hitting time can be infinite at p=0.5.

Point 4 has no single solution. The scheme is the same: your own ruin threshold in currency → the distance from current capital → divide by your own fixed cash risk amount → round up to the reachable barrier → N → ((1 − p)/p)N. Write the result down together with the list of assumptions from point 3: that list is part of the answer.

12. Five numbers you need to have calculated

Each of them requires its base and assumptions to be stated; only with those can it be compared to anything:

  1. Expectancy after execution cost, in R units and in the account currency, with the composition of the cost stated. The definition and derivation are given by article 9.6.
  2. The return required to recover your typical and your deepest drawdown to date, from the identity Z = DD/(1 − DD), calculated from the bottom.
  3. Risk of ruin at your risk per trade, with the ruin threshold, the model variant and the list of assumptions stated. Without those three things the number means nothing.
  4. The median and the 95th percentile of maximum drawdown from a simulation using your own outcomes. The latter is not the worst case; on its own, it does not describe the depth of the remainder of the distribution. The model's limits are established separately.
  5. The half-width of the confidence interval for your expectancy at your number of trades. The mean remains an estimate even when the interval excludes zero. An interval covering zero additionally shows that, under these assumptions, the sample cannot distinguish a positive mean from a zero or negative one. Parameter uncertainty carries through to calculations that depend on the outcome distribution; the return required to recover a specified fall is itself an arithmetic identity.

All five describe the consequences of parameters you supply yourself. None of them rules on whether your rule set has an edge (that question belongs to section 8), and none of them turns a set with negative expectancy into a profitable one.

The next article (9.3) reverses the direction of this calculation: instead of computing risk of ruin for a given percentage, it derives the permissible percentage from a given drawdown and an assumed losing-streak length.

Simulate path equity curves in the Monte Carlo Simulator, inspect recovery multiples in the Drawdown Calculator, and compute net R expectancy in the Expectancy Calculator.

FAQ — frequently asked questions

How does simulation differ from a historical test, and do 100 outcomes suffice for 500 steps?
A test shows one historical order. Sampling with replacement builds other series, including 500 steps from 100 observations, conditional on retaining their distribution. It adds no new win-rate information. Permutation keeps every outcome exactly once; sampling with replacement can omit or repeat it. Section 5 shows order alone.
How many runs are needed, and what does observing zero ruin events mean?
Choose the path count for the accuracy of the quantile of interest and check differences across seeds. Sampling error decreases approximately as 1/√M; twice the accuracy requires around four times M. Record zero ruins as 0/M. With 40,000 paths, the model's one-sided 95% bound is approximately 0.00749%, excluding input uncertainty.
Does a 0.1% risk of ruin mean safety?
It is a probability only under the given barrier, horizon and distribution. For a simulation result, report barrier crossings and path count as well. An additional non-negative cost worsens the same path, while dependence and parameter changes need checks. A gap loss can exceed −1 R and must appear in the distribution or a separate scenario described in 9.10.
Fixed cash risk or a fixed percentage — and can Kelly be substituted into the ruin formula?
The classic formula assumes a fixed amount and ±R payoffs. With percentage risk, the amount changes before each trade; use an appropriate recurrence or simulation for a positive barrier. The Kelly fraction optimises log growth rather than substitutes for p in the ruin formula. Section 1's recovery columns describe mean paths, not median recovery time. Model selection belongs to 9.5.
What does negative expectancy mean?
In the ±R model with a fixed amount, independent outcomes and an infinite horizon, ruin is certain for p≤0.5. For p<0.5, a smaller amount lengthens the mean hitting time. With a finite horizon, the probability may be below 1. Reducing position size does not change the sign of the mean outcome; rule assessment belongs to Section 8.
Is a 20% drawdown large?
Compare it with a distribution using the same base and horizon. In the illustration with p=62% and RR=0.8, median MDD is 10.2% at 1% risk and 19.7% at 2%; 95% quantiles are 17.1% and 31.9%. The same drawdown therefore occupies different positions in the distributions. The quantile does not limit the remaining 5% of paths. Stopping and resumption conditions belong to 9.8.

For advanced readers: outcome dependence and the shape of the distribution

How to retain local dependence. Sampling blocks of consecutive outcomes rather than individual observations preserves some temporal order.[5] Block length remains a parameter: too short destroys relevant dependence, while too long gives few distinct blocks. Compare several explicit lengths at the same horizon and risk. Do not assume every block version must be worse. Order-flow dependence described using EBS data does not measure a particular rule's losses.[6] It helps distinguish kinds of dependence, but does not replace this simulation's inputs.

Two-point distribution versus actual distribution. Sections 3 and 4 assume each trade ends at one of two values: +RR or −1 R. Actual records differ: partial outcomes, exits before the target, and losses deeper than −1.00 R from slippage. Simulation using your full outcome distribution gives different drawdowns from the same p and RR in a two-point version at identical expected value. With sufficient observations, use the full distribution; reducing it to group means removes within-group dispersion but does not determine the change in every quantile or ruin probability.

More runs cannot replace a larger sample

Simulation has two errors. The first comes from drawing M paths at fixed parameters; the second from estimating those parameters using n real outcomes. M=100,000 at n=20 can reproduce an uncertain distribution of twenty observations very precisely. To separate them, calculate several input scenarios and repeat draws with different seeds inside each. Do not describe changes between scenarios as Monte Carlo error.

Sources and references

  1. Karl Sigman, Gambler’s Ruin Problem, Columbia University notes, Section 1.1—derivation of infinite-horizon ruin probability and the p≤0.5 boundary. Supplementary classical literature: Feller W., An Introduction to Probability Theory and Its Applications, Vol. 1, 3rd ed., Wiley, 1968, Chapter XIV. Formal solution of the gambler's ruin problem—the source of Section 3's formula.
  2. Mandelbrot B., Hudson R.L., The (Mis)behavior of Markets, Basic Books, 2004. Further reading on the limitations of normal models. The book has not been read in full for this article and is not used to measure the tails of a particular series; the loss scenarios in section 10 have explicitly assumed parameters.
  3. Bank for International Settlements, Markets Committee, “The sterling ‘flash event’ of 7 October 2016”, Markets Committee Papers No. 9, 13 January 2017. Event sequence, price levels, differences between platforms and the absence of a single trigger.
  4. Engle R.F., "Autoregressive Conditional Heteroskedasticity with Estimates of the Variance of United Kingdom Inflation", Econometrica, 50(4), 1982. The founding paper on conditional volatility (ARCH), carried out on United Kingdom inflation data; cited as the source of the concept of volatility clustering, not as a measurement of the currency market.
  5. Künsch H.R., "The Jackknife and the Bootstrap for General Stationary Observations", Annals of Statistics, 17(3), 1989; Politis D.N., Romano J.P., "The Stationary Bootstrap", Journal of the American Statistical Association, 89(428), 1994. Block resampling for time-dependent data.
  6. Evans M.D.D., Lyons R.K., “Order Flow and Exchange Rate Dynamics”, Journal of Political Economy, 110(1), 2002; Berger D.W. et al., Order Flow and Exchange Rate Dynamics in Electronic Brokerage System Data, Federal Reserve, IFDP 830, 2005. Dependence in currency-market order flow.
  7. Swiss National Bank, “Swiss National Bank discontinues minimum exchange rate and lowers interest rate to −0.75%”, press release, 15 January 2015. Discontinuation of the CHF 1.20 per euro minimum rate and rate reduction to −0.75%; intraday exchange-rate levels come from market-service data and are indicative.
  8. NIST/SEMATECH, Confidence Limits for the Mean—Student's t interval for the mean, assumptions and confidence-level interpretation.

Your learning progress

Finished this lesson? Mark it yourself. Opening or scrolling a page never marks it complete.

Progress requires JavaScript and browser storage.

Saved only in this browser. No account or cross-device sync. Clearing site data can erase your progress.

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.