What the Kelly formula says about an EA's risk per trade, checked on 1,012 backtest trades
Most EAs have a risk-per-trade input, and most of us set it by feel. The Kelly criterion is the textbook way to set it with numbers. It gives the share of the account to risk on each trade so the account grows fastest over the long run. I ran it on a strategy of my own to see what it said, and what would have happened if I had listened.
The three numbers it needs
The common version of the formula needs your win rate, your average win and your average loss. All three are in the MT5 Strategy Tester report: "Profit Trades (% of total)", "Average profit trade" and "Average loss trade".
Kelly % = win rate - (loss rate / payoff)
The payoff is the average win divided by the average loss.
What the formula said
The strategy is an Asian range breakout on USD/JPY. Its out-of-sample backtest has 1,012 trades after costs, all at 1% risk per trade. 45.75% of them won. The average win was +1.04% of the account and the average loss was -0.75%. The loss is under 1% because many trades close at the end of the session before they reach the stop.
Put into the formula, those numbers say to risk 6.7% per trade.
What the trades said
The formula only sees two averages. It treats every win as the same size and every loss as the same size. Real trades aren't like that. Here the best trade made 8.5 times the risk, and the worst lost 2 times the risk when the price gapped through the stop.
So I skipped the averages and searched for the risk size that grows the account fastest over the real list of 1,012 trades. The answer was 5.3%. The formula was too high by about a quarter.
What each size would have done
Next I drew the 1,012 trades at random, with repeats, 40,000 times. Each draw is one possible run of about four years. For each risk size, this is the typical result, the unlucky 1-in-20 result, and the chance of the account ever being 50% below its starting balance:
1% risk: 1.9 times the account, about break-even, 0.1%
1.3% (quarter Kelly): 2.2 times, about break-even, 0.6%
2.6% (half Kelly): 3.9 times, lose 21%, 11%
5.3% (full Kelly): 6.0 times, lose 74%, 44%
6.7% (the formula): 5.3 times, lose 90%, 59%
Full Kelly did grow fastest. It also had a 44% chance of cutting the starting balance in half at some point. The formula's 6.7% was worse on both counts: it grew more slowly than 5.3% and failed more often.
You don't know your Kelly
All of that assumes the 1,012 trades show the true edge. They are one sample. I rebuilt the trade list 4,000 times by drawing from it at random and worked out Kelly each time. In 90% of the lists it came out between 0.5% and 10%. In about 3% of them the edge was gone and Kelly said to risk nothing.
Measured on only the first 250 trades, Kelly said 9.8%. That is almost twice the figure from the full list. Above the Kelly size, growth falls and the drawdowns get much deeper, so guessing too high costs far more than guessing too low.
How I use it
I keep this strategy at 1%, about a fifth of its Kelly number. It grows more slowly, but the bad runs are ones I can sit through, and it leaves room for the real edge being smaller than the backtest says.
For your own EA:
1. Take the three numbers from a report with at least a few hundred trades.
2. Treat the Kelly answer as a ceiling. If your wins vary a lot in size, the true figure is lower.
3. Start from a quarter to a half of it at most, and check the drawdowns at that size by redrawing your own trade list.
These are backtest trades, not live results.


