Articles · Virtual Risk Desk · Published 2026-11-10 · Updated 2026-11-10
EA Lot Size From Drawdown: A Worked Position Sizing Guide
Short answer: Choose the drawdown you'll accept on the money you give an EA, say 20%. Divide it by a bad-case drawdown at the EA's current lot, like the 95th percentile from resampling its own trades. That gives a lot multiplier. In our worked example, an EA with an $806 bad-case drawdown on $1,500 should drop from 0.10 lots to 0.03. Then re-run the sum as trades come in, because with few trades the estimate moves more than the EA does.
This is the hands-on follow-up to how much capital do you really need to run an EA?. That guide gives you a deposit from stops, streaks and margin. This one starts from the trades an EA has already made and works out the lot.
All figures are illustrative examples. The trade list is invented, and later trades are drawn from a stated model with a fixed seed. Nothing here is a backtest, a live result or a performance claim.
Key takeaways
- Lot multiplier = (drawdown budget % × capital) ÷ bad-case drawdown at the current lot.
- A drawdown number means nothing without its horizon. A 250-trade bad case can be 2.7× a 24-trade one.
- Twenty-odd trades can't separate an EA from a coin flip. Size small until the sample grows.
- Several EAs on one account: add up their suggested capital first, then scale.
The sizing formula
DrawdownBudget_$ = Capital × Budget% (we use 20%)
LotMultiplier = DrawdownBudget_$ ÷ BadCaseDD_$ at current lot
NewLot = round_down(CurrentLot × LotMultiplier, lot step)
SuggestedCapital = BadCaseDD_$ ÷ Budget%
This relies on drawdown scaling with lot size. That's roughly true for EAs with one position at a time. It's not true for grid, recovery or multi-leg EAs. See our grid drawdown maths for why.
Why 20%? It's a budget, not a rule. It leaves room for live drawdown to beat the estimate and still be survivable. Pick yours before the EA goes live, not during a drawdown.
Worked example 1: 24 trades at 0.10 lots
An EA has closed 24 trades at 0.10 lots. Here's the list, in order, in dollars:
+92 −104 +71 +118 −88 −120 +64 +85 −96 +103 +77 −112
+58 −91 +97 +110 −84 +69 −115 +81 −99 +88 +74 −107
| Figure | Value | How it's worked out |
|---|---|---|
| Wins / losses | 14 / 10 | count |
| Average win / loss | +$84.79 / −$101.60 | mean of each group |
| Net | +$171 | sum |
| Average trade (expectancy) | +$7.12 | 171 ÷ 24 |
| Standard deviation | $95.10 | sample SD of the 24 trades |
| Standard error | $19.41 | 95.10 ÷ √24 |
| 95% range for the average trade | −$30.92 to +$45.17 | 7.12 ± 1.96 × 19.41 |
| Worst drawdown so far | $208 | peak-to-trough on closed trades |
| Resampled median drawdown | $377 | 2,000 resamples of 24 trades |
| Resampled p95 drawdown | $806 | 1 run in 20 goes deeper |
| Suggested capital at 20% | $4,030 | 806 ÷ 0.20 |
Resampling, step by step: draw 24 trades at random from the list, with replacement. Replay them in that order and record the worst peak-to-trough fall. Do that 2,000 times, sort the results and read the 50th and 95th percentiles. (Our run used Python's random.Random(7). A different seed gives slightly different figures.)
Reading it: 1. The edge isn't proven. Zero sits well inside −$31 to +$45. On 24 trades, this EA can't be told apart from a coin flip. 2. The drawdown so far is the lucky order. The p95 of $806 is nearly four times the $208 seen. 3. The decision. The owner plans to run it on $1,500.
| Capital | Budget (20%) | Multiplier | Lot (rounded down) |
|---|---|---|---|
| $1,500 | $300 | 300 ÷ 806 = 0.37 | 0.03 |
| $3,000 | $600 | 600 ÷ 806 = 0.74 | 0.07 |
| $5,000 | $1,000 | 1,000 ÷ 806 = 1.24 | 0.12, but see below |
A multiplier above 1 doesn't mean you should size up. On 24 trades, cutting size when the numbers say so is cheap insurance. Raising it on numbers that may not hold up is how accounts get hurt.
How many trades before you trust an EA?
The rough count of trades needed before the average trade is clear of zero:
TradesNeeded ≈ (z × SD ÷ Expectancy)² z = 2 for a rough check, 3 for a careful one
For our EA: (2 × 95.10 ÷ 7.12)² ≈ 714 trades. At z = 3 it's about 1,606.
| Expectancy | SD $95.10, z = 2 | SD $95.10, z = 3 |
|---|---|---|
| $5 a trade | ≈ 1,447 | ≈ 3,256 |
| $7.12 a trade | ≈ 714 | ≈ 1,606 |
| $15 a trade | ≈ 161 | ≈ 362 |
| $30 a trade | ≈ 40 | ≈ 90 |
What it means: halve the edge and you need four times the trades. Most EAs with thin edges will never trade enough on one account to prove themselves quickly. That's another reason to size from drawdown, which you can estimate sooner, rather than wait for proof of profit.
Worked example 2: the estimate moves as trades come in
We kept the 24 trades above and added more, drawn from a model of the same EA: 58% winners averaging +$88, losers averaging −$102, fixed seed. At each stage we resampled 2,000 paths of 250 trades, so the horizon stays the same.
| Trades in sample | Average trade (95% range) | p95 drawdown over 250 trades | Suggested capital at 20% | Lot on $3,000 |
|---|---|---|---|---|
| 24 | +$7.1 (−$30.9 to +$45.2) | $2,185 | $10,925 | 0.02 |
| 40 | −$1.6 (−$31.1 to +$28.0) | $3,511 | $17,555 | 0.01 |
| 80 | +$11.5 (−$9.0 to +$32.0) | $1,705 | $8,525 | 0.03 |
| 160 | +$8.2 (−$6.3 to +$22.7) | $2,050 | $10,250 | 0.02 |
| 320 | +$6.9 (−$3.5 to +$17.2) | $2,211 | $11,055 | 0.02 |
What it means: - Trades 25 to 40 were a bad patch. The suggested capital jumped by 61% in 16 trades. Nothing about the EA had changed. - By 160 to 320 trades the figure settles near $10,000 to $11,000. The 95% range narrows, though it still includes zero. - A rising figure is the warning. If the suggested capital keeps climbing as the sample grows, the EA is getting worse, or the early sample flattered it.
Worked example 3: the horizon changes the answer
Same 160-trade sample, 2,000 resamples, different path lengths:
| Horizon (trades) | Median drawdown | p95 drawdown | Suggested capital at 20% |
|---|---|---|---|
| 100 | $732 | $1,521 | $7,605 |
| 250 | $1,058 | $2,050 | $10,250 |
| 500 | $1,329 | $2,471 | $12,355 |
| 1,000 | $1,671 | $2,942 | $14,710 |
Longer sequences give bad streaks more chances to line up, so the worst drawdown grows. It grows more slowly than the horizon, though: ten times the trades gave about 1.9 times the p95 here. When anyone quotes you a drawdown, ask "over how many trades?" The 24-trade p95 in example 1 ($806) and the 250-trade p95 in example 2 ($2,185) come from the same trades.
Our Monte Carlo guide covers adding costs and slippage to the resample.
Worked example 4: three EAs on one account
Each EA is sized on its own, at the lot it currently trades:
| EA | Current lot | p95 drawdown | Suggested capital at 20% |
|---|---|---|---|
| A (trend) | 0.10 | $2,050 | $10,250 |
| B (range) | 0.05 | $900 | $4,500 |
| C (breakout) | 0.02 | $1,400 | $7,000 |
| Total | $21,750 |
The account holds $12,000. Adding the capital up treats the three bad patches as if they could arrive together. That's the cautious assumption, and it's the right one when EAs share a currency or a market mood.
ScaleFactor = 12,000 ÷ 21,750 = 0.552
A: 0.10 × 0.552 = 0.055 → 0.05
B: 0.05 × 0.552 = 0.028 → 0.02
C: 0.02 × 0.552 = 0.011 → 0.01
EA C is now at the broker's 0.01 floor. If the scale factor fell any lower, C couldn't be sized honestly on this account, and the right move would be to drop it, not run it oversized. See running multiple EAs on one MT5 account for correlation and magic numbers.
Where Virtual Risk Desk fits
VRD Quant does this resampling for you, per EA, from that EA's own closed trades. It runs 2,000 resamples and suggests operating capital, a fixed lot and max lots from the p95 drawdown, starting from 10 closed trades. It's read-only. It doesn't change your EA's settings. With few trades it can only reshuffle what has already happened, so early figures are rough and live results can exceed them. See VRD Quant on the MQL5 Market.
To re-check as live trades come in, VRD Insight splits results and drawdown by magic number. It's free on the MQL5 Market. VRD Complete adds calibrate-and-save, so a sizing you've reviewed can be kept in each EA's Passport.
Checklist: sizing an EA from its trades
- Export the trades at the lot you'll trade. For grid or multi-leg EAs, test at that exact lot.
- Compute expectancy, SD and the 95% range. If zero is inside it, treat the EA as unproven.
- Resample at least 2,000 times over a stated horizon, such as 250 trades. Record the median and p95 drawdown.
- Set your budget % before you look at the answer.
- Work out the multiplier and round the lot down. If it falls below the broker's minimum lot, the capital is too small for this EA.
- Don't size up on a small sample. Cap the multiplier at 1 until you have a few hundred trades.
- Add up all EAs sharing the account, then scale.
- Re-run at 40, 80 and 160 trades. Write each figure down and watch the trend.
What to do next
- Today: for each EA, divide 20% of the money you actually give it by its p95 drawdown. If the answer is below 1, cut the lot by that factor.
- This week: add up suggested capital across every EA on the account and compare it with your balance.
- Every month: re-run the figures on live trades and write them next to the last ones. Check your drawdown figures against how MT5 reports backtest drawdown.
Further reading on MQL5
- Tool in Action: 20 Trades, +$220, and the Capital Quant Says It Needs
- Your Backtest's Max Drawdown Is Not Your Worst Case
Related reading
- How much capital do you really need to run an EA?
- Monte Carlo for MT5 backtests
- Grid EA drawdown maths
Risk disclaimer: Trading forex and CFDs with leverage carries a high risk of losing money quickly, and you can lose all of your capital. Every figure in this article is an illustrative example: an invented trade list, a seeded model and seeded resamples. None of it is a backtest, a live result, a forecast or a performance claim. Resampled drawdowns are estimates from past trades, and live drawdown can exceed them. Past performance does not guarantee future results. This is not financial advice. Virtual Risk Desk tools are monitoring and analysis software. They suggest figures, they do not set or guarantee them, and they do not guarantee profits or prevent losses.
Frequently asked questions
How do I work out an EA's lot size from its drawdown?
Pick the drawdown you'll accept as a share of the money you give the EA, say 20%. Divide that dollar figure by a bad-case drawdown at the current lot, such as a resampled 95th percentile. The answer is a lot multiplier. Round the new lot down to the broker's lot step.
How many trades do I need before I trust an EA's results?
Enough that zero is outside the range for its average trade. A rough count is (2 × trade standard deviation ÷ average trade)². In our worked example, with a $95 spread of results and $7 a trade, that's about 700 trades. Thin edges need hundreds or thousands.
Why does the suggested capital change as an EA trades?
Every new trade changes the sample the estimate is built from. Early on, one bad patch can push the bad-case drawdown up sharply. A figure that keeps rising as the sample grows tells you more than any single reading.
Does drawdown scale with lot size?
For simple single-position EAs, roughly in proportion. Halve the lot and the drawdown roughly halves. For grid, recovery or multi-leg EAs it doesn't, because the EA behaves differently at different lots. Test those at the lot you'll trade.
What is a p95 drawdown?
It's the drawdown that 95% of resampled trade sequences stay inside, so 1 run in 20 goes deeper. It's an estimate from past trades, not a ceiling. Live drawdown can exceed it.
How do I size several EAs on one account?
Work out each EA's suggested capital on its own, then add them up as if their bad patches could arrive together. If the total is more than the account, scale every EA's lot by the same factor, or drop one.
One EA blowup costs more than the whole suite.
VRD Complete contains single-EA blowups and frees capital you have parked as idle buffers. $149 at launch pricing.