EAs & auto trading Guide 4 of 4 in this topic

Risk Management for EA Traders: Size From the Worst Trough, Not a Round Deposit

Risk management for an EA starts before you attach it. 23 EA backtest records, all run on the same 10,000 deposit, had worst drawdowns from 0.67% to 26.5% of it — one deposit cannot fit that spread. Here is how to size from the record, and the four numbers that decide when you switch an EA off.

Published · Updated · Reviewed

Risk Management for EA Traders: Size From the Worst Trough, Not a Round Deposit

At a glance

Level
Beginner
Reading time
12 min read
Sections
5
Questions answered
4
Numbers checked
2026-08-25
In this guide (5 sections)

Risk management for an expert advisor comes down to one decision made before you attach it: how large a position, against how much deposit, and at what point you stop. The EA will not make that decision. It will keep trading its rule through the worst stretch in its record and through whatever comes after.

Four numbers do the work, and only one of them is usually quoted:

  • The worst trough, in money. Not the percentage — the amount the balance actually gave back.
  • The worst losing run. Median 8 trades across these records. Worst: 38 in a row.
  • The worst single trade, which sits a median of 1.89× the average loss and up to 10.2× it.
  • The floating-equity gap. The open-position drawdown was deeper than the closed-trade one in all 23 records.

The first three are measured below from the 23 closed-trade lists. The equity gap comes from each run’s balance and equity drawdown figures.

Test conditions
Experiment IDEXP-EA-RISK-BUDGET-001
SourceClosed-trade lists of 23 MT5 Strategy Tester runs
Population23 EA backtest records, every one with its full closed-trade list
ModelMetaTrader 5 Strategy Tester backtests
Deposit10,000 on all 23
Last verified2026-08-25

How we run and label these tests is set out in our testing methodology.

What to look for: the four numbers that set your size

Read them off the EA’s own report and trade list before you decide anything. MT5 prints most of them, but not in the form you need for sizing.

NumberWhy it sets your sizeWhere the report misleads
Worst trough in moneyIt is the amount your deposit has to absorb without you interveningThe percent beside it is measured from the peak balance, not from your deposit
Worst losing runIt is how many times in a row you have to not interveneMaximum consecutive losses is printed, but easy to skip past the ratios
Worst single lossOne trade can cost 10× the average oneThe average loss sits beside it and looks like the safer input
Floating-equity gapYour margin lives on equity, not on closed tradesThe balance line is the flattering one

The spread across the records is the reason this matters. The deepest, the shallowest and a few in between, by worst trough:

Main symbolTradesWorst troughShare of the 10,000 depositWorst losing run
GBP/JPY6952,649.5426.50%35
EUR/USD (4 symbols)4,7252,479.1324.79%14
EUR/JPY7762,464.6424.65%38
EUR/GBP4261,359.0213.59%9
EUR/USD (5 symbols)912965.889.66%8
USD/JPY1,611575.345.75%10
JP22521067.430.67%4

Median across all 23: 8.67%. So the typical record gives back roughly a twelfth of the deposit at some point — and the deepest gives back more than a quarter. All but the JP225 record ran at 0.1 lots on the same deposit. The spread comes from the rule set and the market it trades, not from the size.

Check the record was produced at the size you will run

One more check, and it takes ten seconds: a trough figure only applies to you if you run the EA at the size it was measured at.

Of the 23 records, all 23 ran on a 10,000 deposit and 22 used 0.1 lots. The exception is the JP225 record, produced at 3.0 lots rather than 0.1, on an index instrument. Its 0.67% trough is the trough of the 3.0-lot run. Run it at 0.1 lots and you are running a position its record does not describe. Open the Inputs tab of the report or the .set file, and confirm the lot size before you borrow any percentage from it.

Fixed lots vs percent risk vs sizing from the record

Three approaches, and the one most articles recommend is the one that fits an EA worst.

ApproachWhat it doesWhere it breaks with an EA
Fixed lotsOne size, never changesSafe and honest, but the size is arbitrary unless you derived it from a trough
Percent risk per tradeSize scales to a stop-loss distanceAssumes a fixed stop. Many EAs exit on a condition, not a price, so “1% per trade” has nothing to attach to
Sizing from the record’s worst troughPick a size where the worst observed trough is money you can sit throughNeeds the trade list, and gives you a bigger number than you wanted

The middle row is the trap. Position sizing by percent-of-account is sound advice for a discretionary trader who sets a stop on every entry. An EA that manages its exit dynamically does not give you the distance the formula needs. Substituting the average loss understates the tail badly: across these records the worst trade is a median of 1.89× the average one. The extreme is a five-symbol record whose worst single trade cost 545.00 against an average loss of 53.43, 10.2 times larger.

The third row produces uncomfortable numbers, which is the point. If the GBP/JPY record’s worst trough is 26.5% of a 10,000 account at 0.1 lots, then running it on 5,000 at the same size means the same sequence takes 53% — and no plan survives being half wrong before it is right.

Running the plan in practice

  1. Open the EA’s trade list or saved Strategy Tester report and read its worst trough in money, its worst losing run and its worst single loss — not the summary line.
  2. Double the worst trough. The record bounds what has happened, not what will. Six of these 23 records exceed a quarter of the 10,000 deposit once you double them; one exceeds half.
  3. Set your deposit so that doubled figure is money you can watch disappear without switching the EA off. If it is not, halve the lot size rather than hoping.
  4. Add the floating-equity margin. Every one of the 23 records has a deeper open-position drawdown than its closed-trade one — a median of 1.08× and up to 1.76× worse — because the balance only moves when a trade closes.
  5. Write down two stop conditions in numbers before you enable Algo Trading: a money figure that ends the test, and a number of consecutive losses that ends it. Decide them while you have nothing at stake.

Step 4 is the one people skip. The trough figures on this page come from a closed-trade equity curve, and a closed-trade curve is blind between entries. The account that receives a margin call is looking at floating equity, which in these same records runs deeper in every single case. Treat the trough figures here as a floor.

If you build the EA yourself, you can bake the sizing in rather than remembering it. In the Strategy Builder, lot size and the money rules live in the Settings tab, not on the canvas. Set a fixed lot you derived from the trough, and confirm that martingale lot, averaging and pyramiding are off before you compile.

The losing run matters more than the drawdown depth

A trough that recovers and relapses is survivable in a way that an uninterrupted one is not, because each winning trade in between gives you a reason to keep going. The EUR/JPY record is the case worth studying: its worst losing run is 38 trades, and the money lost in that run — 2,464.64 — is exactly its whole worst trough. Every one of those 38 trades lost. Nothing interrupted it.

That is 38 consecutive opportunities to conclude the EA is broken, at a point in the record where the correct answer was to do nothing. Compare the four-symbol EUR/USD record, which reached a similar trough of 2,479.13 with a worst run of 14 — a materially easier thing to sit through for the same money.

Risk, and the numbers that mean stop

Four failure modes, in the order they actually occur.

Sizing to the average. The average loss across these records is 0.66% of the 10,000 deposit at the median, which sounds like a comfortable 150 losing trades of runway. The worst single trade reaches 5.45% of the deposit. An account sized on the average meets the tail with roughly an eighth of the buffer it assumed.

Intervening inside the drawdown. This is the expensive one, and the numbers above are the reason it happens: 38 losses in a row is long enough for any explanation to become plausible. The defence is not willpower. It is deciding the exit number in advance and sizing small enough that the number does not arrive early.

Running several EAs on one account and adding the troughs. Every figure above describes one EA measured alone. Nothing in these records says two of them cannot be under water in the same week, and the naive assumption — that diversifying shrinks the drawdown — is the one worth testing before you rely on it. The measurement we have of combining rules comes from the Strategy Builder’s template gallery: all 9 portfolio templates ended with a median drawdown of -3.51% against -1.065% for single rules, and one three-rule composition in EXP-MACD-RECIPE-BASELINE-001 reached a drawdown 3.76 times deeper than its MACD rule run alone while its profit factor moved by 0.02. Size a multi-EA account against the sum of the individual troughs until you have measured your own combination, not against the average of them.

Treating the backtest as the worst case. It is the best-documented case, not the worst. None of these records is a live-account run, and a backtest never tests execution, slippage or a broker outage. Doubling the trough is not pessimism. It is the minimum correction for measuring the future with a ruler built from the past.

Nothing here is financial advice, and no past drawdown bounds a future one.

Next steps

From there:

  • To see what 53 measured designs say about returns rather than sizing, are Expert Advisors profitable reads what “profitable” turns out to mean.
  • If the EA you are sizing came from somewhere else, how to use a free EA covers the checks that come before this one — starting with whether anyone independent measured the numbers at all.
  • To produce a trough figure for a rule of your own, run a backtest and read the closed-trade list rather than the summary line.

Frequently asked questions

How much money do I need to run an EA?
More than the worst drawdown in its record, and the record is the floor rather than the answer. Across 23 EA backtest records, all run on a 10,000 deposit, the deepest closed-trade drawdown ranged from 0.67% of that deposit to 26.5% of it — one GBP/JPY record gave back 2,649.54 at one point inside a profitable run. Take the EA's own worst trough, double it because the future is not bounded by the past, and check the result is money you can watch fall without switching the EA off. On six of the 23, doubling the worst observed trough already consumes more than a quarter of the 10,000.
What percentage should I risk per trade with an EA?
The question is less useful than it sounds, because an EA does not risk a percentage — it trades a lot size, and the loss that lot size produces varies enormously. Across these records the average loss is 0.66% of the 10,000 deposit at the median. But the single worst trade is 1.89 times the average loss at the median and 10.2 times it at the extreme: one record averages 53.43 per losing trade and has one trade that cost 545.00, 5.45% of the deposit. Size from the worst trade in the record, not the average one.
When should I turn an EA off?
Decide before you attach it, and write the number down. Two conditions are worth setting: a drawdown cap in money, and a limit on how many losing trades in a row you will sit through. The records make the second one concrete: the median worst losing run across 23 of them was 8 trades, and the longest was 38. If your plan cannot survive the longest run in the record you chose, the EA is not necessarily wrong — the plan is the wrong size.
Does running several EAs on one account reduce the drawdown?
Not by default, and we checked rather than assuming. In the Strategy Builder's template gallery, all 9 portfolio templates that combine several rules ended with a median drawdown of -3.51%, against -1.065% for single rules measured the same way, and none of them reached a profit factor of 1. One composition of three momentum rules reached a drawdown 3.76 times deeper than its MACD rule run alone. Size a multi-EA account against the sum of the individual troughs until you have measured your own combination.

Read next

The next guide in this topic comes first, then the rest in a suggested reading order.

Put what you learn into an EA

Build the entry and exit rules from blocks in the AIStrategyMiner Strategy Builder, then test them on your own price history before you decide anything.

  • Compile a standard .ex5 file for MetaTrader 5 and check it in the Strategy Tester.

Test any EA in the MetaTrader 5 Strategy Tester before you rely on it. Past results do not predict future ones.

AIStrategyMiner Strategy Builder: strategy blocks wired together on a canvas, with the properties panel on the right