Forex Bots & EAs tutorial

How to Troubleshoot an EA That Isn't Trading

Your EA is on the chart but no trades appear. Go through these checks in order — each one rules out a common cause before you move on to the next.

Intermediate About 20 min(estimate) 8 stepsPublished

Times are estimates — they vary with your computer, connection and experience.

Before you start

  • MT4 or MT5 with the EA attached to a chart.
  • The EA's documentation (symbols, timeframe and the conditions it trades on).

What you'll learn

  • Rule out permission, connection and market-hours problems.
  • Use the logs to see whether the EA tried to trade.
  • Separate broker rejections from an EA that simply hasn't had a signal.

Steps

  1. Step 1: Check both trading switches

    The toolbar button must be on — AutoTrading in MT4, Algo Trading in MT5 — and the EA's own permission: Allow live trading (MT4) or Allow Algo Trading (MT5) on the Common tab (press F7 on the chart).

  2. Step 2: Confirm you're connected and the market is open

    The bottom-right corner should show a live connection. Check the symbol's trading sessions under Specification in Market Watch — orders are rejected outside them, and over weekends for most forex symbols.

  3. Step 3: Read the Experts tab

    Open Ctrl+T → Experts. Errors such as 4109 (MT4) or 4752 (MT5) mean trading isn't allowed; a missing load message means the EA isn't running at all. See How to Read the MT4 Experts and Journal Logs.

  4. Step 4: Check the Journal for broker rejections

    If an order was sent but refused, the Journal shows why:

    • Invalid stops (MT4 130 · MT5 10016) — stops too close to price.
    • Invalid volume (MT4 131 · MT5 10014) — lot size outside the broker's limits or step.
    • Not enough money (MT4 134 · MT5 10019) — insufficient free margin.
    • Market closed (MT4 132 · MT5 10018).
  5. Step 5: Check the symbol and timeframe

    Make sure the chart's symbol and timeframe match the documentation. Brokers often add suffixes (for example EURUSD.m); some EAs need the exact name entered in an input.

  6. Step 6: Check the EA's own filters

    A maximum-spread limit, trading-hours window, news filter or maximum-trades limit can legitimately block entries. Compare the current spread and server time with those inputs.

  7. Step 7: Allow web requests if the EA verifies a license

    EAs that check a license online need Tools → Options → Expert Advisors → Allow WebRequest for listed URL, with the address the developer gives you added to the list.

  8. Step 8: Wait for a real signal — or contact the developer

    If every check passes and the logs show no errors, the EA may simply be waiting for its conditions; some strategies trade rarely. If that doesn't match the documentation, send the developer your Experts and Journal lines, platform and build, broker and .set file.

Expected result

You've either found and fixed the cause (the next signal produces a trade or a clear log message), or you've confirmed the EA is waiting for its conditions and have the logs ready if you need support.

Troubleshooting

It trades in the Strategy Tester but not live
Live trading adds permissions, real spreads, filters and broker rules the tester may not reproduce. Go back through steps 1, 4 and 6.
It stopped trading overnight
MetaTrader must stay open and connected. If your computer slept or restarted, the EA stopped with it — a VPS avoids this.
"DLL calls are not allowed"
Enable Allow DLL imports for this EA, only if you trust its developer.

Official documentation

Next tutorial

How to Test a Forex Bot on a Demo Account

Forward test an Expert Advisor on a demo account: open a demo, mirror your real settings, keep a simple log and compare results with the backtest.

Continue

Related tutorials

All tutorials
  • MetaTrader 4Beginner

    How to Read the MT4 Experts and Journal Logs

    Use the MT4 Experts and Journal tabs to see what your EA and terminal are doing, open the log files on disk, and copy the right lines for support.

    About 10 min(estimate) 6 steps
  • Forex Bots & EAsIntermediate

    How to Configure Expert Advisor Settings

    Configure an Expert Advisor's inputs in MT4 or MT5: lot size and risk, stop-loss units, magic numbers and spread limits, plus saving and loading .set files.

    About 20 min(estimate) 7 steps