Risk of Ruin for EAs: The Formula That Decides If 1% Risk Is Actually Safe
摘要 — Risk of ruin is the probability your account is wiped out before a strategy's edge compounds. The practical formula (streak breach = (1 minus win rate) raised to N, with N = cap divided by risk per trade), a worked table across win rates and risk levels, and real relative-drawdown figures from our backtests showing why profit factor is not survival.
Risk of ruin for an EA: the formula that decides if 1% risk is actually safe
TL;DR — Risk of ruin is the probability your account is wiped out before a strategy's edge can compound, and it is driven by just three inputs: win rate, payoff ratio, and risk per trade.
- A 1 percent risk per trade feels safe but is not automatically safe: at a 40 percent win rate, risking 2 percent gives a single 5-loss streak about a 8 percent chance of breaching a 10 percent cap.
- Risk of ruin is not the same as drawdown. Drawdown reports what already happened; ruin reports the probability it ends.
- The only knobs that lower it are a smaller risk per trade, a higher payoff ratio, and a higher win rate — never a larger lot size. See the drawdown data on our proof page.
What is risk of ruin in algorithmic trading?
Risk of ruin is the probability that a trading account reaches zero before its positive expectancy has a chance to compound. It is a survival number, not a return number. A strategy can have a genuinely positive edge and still be ruined by variance alone, because the edge only appears after enough trades, and a long enough losing streak can end the account first. That distinction is why ruin is separate from drawdown: drawdown measures a past dip, ruin estimates the chance of a terminal one.
What is the risk of ruin formula?
The practical form most traders can actually compute uses the drawdown cap they are willing to survive. If you risk a fixed fraction R of equity per trade and your broker or prop firm caps total loss at D, the number of consecutive losses that breaches the cap is N = D divided by R. The probability of exactly that uninterrupted losing streak is:
Streak breach probability = (1 minus win rate) raised to the power N
So at a 50 percent win rate, risking 1 percent under a 10 percent cap means N = 10, and a 10-loss streak has probability 0.5 raised to 10, about 0.10 percent. Raise risk to 2 percent and N drops to 5, pushing that same streak probability to about 3.1 percent. The math is unforgiving: halving the risk per trade more than squares your survival odds, because N moves the exponent.
There is also a deeper closed form worth knowing. In the standard fixed-fractional ruin model the odds-against term is (1 minus p times payoff) divided by (p times payoff), where p is win rate and payoff is average win divided by average loss. When expectancy is positive this term sits below one and long-run ruin falls toward zero — but only asymptotically, and only if no real-world cap is hit first. In practice the cap is always hit first, which is exactly why the streak formula above is the number that matters.
How much risk per trade keeps ruin low?
The table below shows the streak-breach probability for a 10 percent drawdown cap across common risk and win-rate combinations. It counts the worst case — one uninterrupted losing streak — so treat it as a floor on caution, not a precise probability; real ruin can also arrive from several streaks around a flat stretch.
| Risk per trade | Consecutive losses to breach a 10% cap (N) | Streak probability at 50% win rate | Streak probability at 45% win rate | Streak probability at 40% win rate |
|---|---|---|---|---|
| 1% | 10 | 0.10% | 0.25% | 0.60% |
| 2% | 5 | 3.1% | 5.0% | 7.8% |
| 3% | 4 (rounded) | 6.3% | 9.2% | 13.0% |
| 4% | 3 | 12.5% | 16.6% | 21.6% |
| 5% | 2 | 25.0% | 30.3% | 36.0% |
The takeaway is direct: at a 40 percent win rate, the difference between 1 percent and 2 percent risk is the difference between a 0.6 percent and a 7.8 percent single-streak breach chance — more than ten times. Lower win rates or a tighter cap make the gap wider still.
Does a high profit factor mean low risk of ruin?
No, and confusing the two is a common, expensive mistake. Profit factor measures net edge (gross profit divided by gross loss), while risk of ruin measures survival. A strategy can post a strong profit factor on the back of many small wins yet still carry rare but deep losses that blow the account. In our own full-window backtests on a 10,000 USD simulated account (2021 to 2026, not all currently listed), relative drawdowns range from 0.47 percent to 42.91 percent across published builds:
| Build | Instrument | Relative drawdown (full window) | Profit factor |
|---|---|---|---|
| Hy3 Grid Recovery | EURUSD H1 | 0.47% | 2.62 |
| JPY Asia Ranger | USDJPY | 3.92% | 1.37 |
| Gold NY Momentum | XAUUSD | 3.84% | 1.05 |
| Order Block SMC | XAUUSD | 6.77% | 1.53 |
| Index ORB | USTEC M15 | 6.98% | 1.34 |
| Aurora Gold Breakout | XAUUSD H1 | 8.71% | 1.74 |
| Gold Grid M1 | XAUUSD | 42.91% | 1.69 |
Gold Grid M1 carries a profit factor of 1.69 yet a 42.91 percent drawdown — a clear reminder that factor alone does not buy survival. Pair any edge claim with drawdown and trade count, and size from the drawdown, not from the factor. Compare builds directly on the compare page or browse the store.
How do prop firms use risk of ruin?
Prop firms set hard caps — typically a 10 percent max drawdown and a 5 percent daily loss limit — precisely because they are pricing your ruin probability. The firm is not betting on your strategy being profitable; it is betting you will not hit the cap before the edge shows. An EA sized to stay well below the cap is what clears a challenge and keeps the funded account, which is why execution venue and a drawdown guardian matter as much as the entry logic. Our partner list covers venues we have tested, and PropGuard is built around keeping an account under the cap.
Practical rules to lower your EA's risk of ruin
Size from the cap, not from the balance: pick risk per trade as a fraction of the drawdown cap, not of total equity, so a bad streak cannot end the account. Favour strategies with a higher payoff ratio, because each win repairs more losses and shortens the streaks that threaten ruin. Keep win rate honest by testing on a recent window, since an overfit number is the most dangerous input in the formula. And never raise lot size to "make up" for a drawdown — that only moves the exponent the wrong way. The recovery math behind a deep drawdown is covered in drawdown recovery, and the sizing choice between fixed lot and percent risk is in position sizing.
FAQ
-
q: Is 1% risk per trade safe for an EA?
-
a: Not automatically. A 1 percent risk under a 10 percent cap gives about a 0.6 percent single-streak breach chance at a 40 percent win rate, but raising risk to 2 percent pushes that past 7.8 percent. One percent is a sensible starting point, not a guarantee of survival — the win rate and payoff ratio in the formula decide the rest.
-
q: Does a high profit factor mean low risk of ruin?
-
a: No. Profit factor captures net edge, not survival. In our full-window tests Gold Grid M1 shows a profit factor of 1.69 alongside a 42.91 percent drawdown, so a strong factor with rare deep losses still carries real ruin risk. Always pair profit factor with drawdown and trade count.
-
q: How do prop firms use risk of ruin?
-
a: They set hard drawdown and daily-loss caps because they are pricing your ruin probability, not your profitability. An EA sized to never approach the cap is what passes a challenge and keeps the account, which is why a drawdown guardian belongs in any funded-account setup.
Verdict: Risk of ruin is not the same as drawdown — drawdown tells you what already happened, ruin tells you the probability it ends, and the only knobs that lower it are a smaller risk per trade, a higher payoff ratio, and a higher win rate, never a bigger lot size.
Risk disclaimer: Forex, CFD, and futures trading with leverage can lose more than your deposit. This article is educational and not financial advice. Backtest figures here are simulated on a 10,000 USD account and do not predict future results. Test any EA on a demo account before risking real capital.