Why EAs fail prop firm challenges: six code mistakes and how to check yours
An EA usually fails a prop challenge because of the code around the signal: no daily loss guard, orders that repeat on every tick, lot sizes the broker rejects, unchecked order errors, signals that repaint, and costs left out. Position size matters too: in our simulation the same trader passed 81.8% of challenges at 1% risk but only 40.2% at 3%.
Six mistakes an EA check finds again and again
Our free EA code check reads MQL5, Pine Script or Python bot code and shows the top five costly mistakes with line numbers. These are the rules it looks for. Each one can end a challenge on its own.
- No stop loss and no max-loss guard. Prop firms end the account at the daily or maximum loss limit, and many measure it on equity, floating losses included (check your firm). An EA without its own daily stop leaves the limit to luck.
- Orders can repeat without a limit. Code that sends an order on every tick without checking "do I already have a position?" can open dozens of trades in a minute. This is the classic way a good idea turns into a single bad day.
- Order size not rounded to the lot step. The broker answers with error 10014 and the EA silently skips the trade, or retries forever.
- Order errors are not checked. If the code never looks at the return code, a rejected stop loss (10016) can leave a position open with no stop.
- The signal uses a bar that has not closed. The backtest looks great because it peeked at the candle's final value. Live, the signal flickers (repaint / look-ahead).
- Fees and spread left out of the profit maths. A strategy with a small edge per trade can turn negative once the real spread and commission are counted.
Size matters more than the signal
In our own simulation of 20,000 challenges (10% target, 5% daily loss, 10% static max loss), the same trader passed 81.8% at 1% risk per trade but only 40.2% at 3%. Three losers in a row on one day at 2% risk is 6%, past a 5% daily limit. Details: what the numbers show. An EA that doubles its lot after a loss (martingale) makes this worse: five losses in a row at a starting 1% risk is 1 + 2 + 4 + 8 + 16 = 31% of the account.
A short pre-challenge routine for an EA
- Write the firm's daily loss, maximum loss (static or trailing) and reset time on one card; see prop firm rules explained.
- Add a daily equity guard in the EA that closes trades and stops trading before the firm's limit, not at it.
- Round every order size to the symbol's volume step and check return codes.
- Compute signals on closed bars only.
- Run the EA on a demo account with the same spread and commission as the challenge.
- Run the free code check and fix what it finds.
What the check cannot do
It is a rule checker, not an AI guess: same code, same answer. It does not compile your EA, run the Strategy Tester or judge whether the strategy makes money, and a clean result is not a safety proof. For a full human read with a compile and Strategy Tester run there is the EA code review (quick EA check US$39).
Sources: Trading Checkup EA code check rule list (tradingcheckup.com/tools/ea-check/); Trading Checkup simulation of 20,000 challenges (5 November 2026); MQL5 documentation for trade server return codes; each firm's own rules page, see the prop firm directory.