Skip to content

EA not opening trades in MT4, is it your network or your code?

  • Updated
  • By Traders Proxy
  • 5 min read

The short answer

When an Expert Advisor (EA) skips trades in MetaTrader 4 (MT4), separate your network from your code first. Check the Experts tab for error codes and the Journal tab for drops. If your EA must run with your computer off, use a VPS, not a proxy.

A missed EA trade can be your network, your broker or your EA.

A fast candle moves during a release, and your Expert Advisor (EA) should open or close a trade. Instead, MetaTrader 4 (MT4) or MetaTrader 5 (MT5) drops or shows No connection. By the time the terminal reconnects, the entry price is gone.

You can’t tell at a glance whether your network dropped or your EA stayed quiet. Without checking the logs, you might fix the wrong thing. Then your EA will miss the next release too.

Five checks tell a network drop from an EA rule.

Do them in order, so you don’t change your network for a problem in your code.

Five checks in MT4 and MT5

  1. 01

    Check live trading permissions

    Make sure the automated trading button on the toolbar is on. Then check that the EA’s properties have Allow live trading ticked.

    What it tells you. If either is off, the EA was never allowed to trade.

  2. 02

    Read the Experts tab at the missed signal time

    Open the Terminal window and click the Experts tab. It logs what your EA printed and any error returned when it tried to send an order.

    What it tells you. An error code means the EA tried and was refused. The list below says what each code means.

  3. 03

    Read the Journal tab for the same minute

    Switch to the Journal tab and check the times around the missed trade.

    What it tells you. A connection lost or login line means the session dropped, so the EA could not send its order.

  4. 04

    Check that prices were moving

    Confirm that prices in Market Watch were updating during that window. Also check that the symbol your EA trades is in the list.

    What it tells you. If prices stopped, the EA had nothing to act on. If the symbol is missing, it can’t trade it.

  5. 05

    Compare with a run in the tester

    Run the EA in the Strategy Tester over the same date. The tester runs on your computer with no internet connection involved.

    What it tells you. If it skips the trade there too, the cause is in the EA’s rules, not your network.

Each log result points to a different fix.

Find the line that matches your logs, so you know which fix to try.

  • Nothing in Experts, and the Journal shows a disconnect at that minute. The terminal was offline. See MT5 keeps disconnecting or MT4 won’t connect.
  • Nothing in Experts, and no drop in the Journal. Your EA’s own entry filter blocked the trade. Check max-spread filters, session hours, open trades and your computer’s clock.
  • Error 128 (trade timeout). MT4 sent the order and got no confirmation in time. Check your trade history before you try again. See order rejected on timeout.
  • Error 129 (invalid price), 136 (off quotes) or 138 (requote). The price moved at your broker. Read requotes on gold and check your EA’s deviation setting.
  • Error 134 (not enough money) or 130 (invalid stops). Your account margin, or your broker’s minimum stop distance. Check lot sizing and the contract specification.

The error codes 128, 129, 130, 134, 136 and 138 are documented in the MQL4 trade server return codes reference.

If nothing dropped and nothing was sent, your EA chose not to trade.

If the Journal shows no connection loss and the Experts tab shows no order attempt, your network is not the cause. No connection change will help. Look inside the EA’s settings first.

  • A maximum-spread filter that skips entries when spreads widen at rollover or during news.
  • A time-window filter compared against a computer or VPS clock that has drifted out of step with Windows Time.
  • A rule that allows only one open order per symbol or magic number while an older trade is still open.
  • The difference between an every-tick EA and an on-bar-open EA. Read why backtests differ from live.

An EA that must run with your computer off needs a VPS, not a proxy.

If your EA must run while your computer is switched off or asleep, use a VPS. Traders Proxy doesn’t keep a platform running when your computer is off. Traders Proxy or a VPS compares the two.

You can run an EA on your own computer, or inside a VPS. Either way, you paste Traders Proxy into MT4’s or MT5’s proxy setting.

Traders Proxy can help with drops, not with your EA’s code.

This section is for you if your logs showed drops. If the internet loses a piece of data, later updates wait until the missing piece arrives.

Our server in your broker’s city makes its own, separate connection to your broker. Any packet lost on that leg is recovered inside that city.

Nagle’s algorithm is off so small order packets leave as they arrive. When a server’s bandwidth is busy, connections to the ports trading platforms use are sent first.

If your device drops off, our server notices quickly and frees its place, so your platform can reconnect instead of hanging. Your device can reconnect straight away from the same network, up to your device limit.

Why it matters. Your EA isn’t left locked out while the market moves.

Traders Proxy does not fix an EA’s code, local Trade context is busy locks or entry filters. Data lost on your own line is still sent again between you and our server.

We don’t promise lower ping. Distance sets the minimum. If your broker prohibits proxies, don’t use one.

You cannot set up a proxy while your platform is disconnected in a live trade. Paste your proxy login details while the market is calm, before the next release.

Frequently asked questions

Will a trading proxy fix an EA that skips trades because of its code?

No. If your EA’s spread filter, time filter or entry rule decides not to send an order, changing your network changes nothing.

Do I need a VPS or Traders Proxy for an automated EA?

Use a VPS if the EA must run while your computer is off. Traders Proxy does not keep a platform running when your computer is shut down.

Where do I see EA error codes in MT4?

Open View → Terminal (or press Ctrl+T) and select the Experts tab for EA output and trade return codes. Then check the Journal tab for connection events.

Why did my EA open the trade in the Strategy Tester but not live?

The Strategy Tester runs on your computer without network drops, live spread changes or broker rejections. Check the Experts and Journal tabs at the exact bar time.

Can clock drift on a VPS make an EA miss a trading window?

Yes, if the EA compares its time filter with the computer’s clock instead of the broker’s server time. Check that Windows Time is synchronised.

Trader reports · Verified threads

Real trader reports, what our server does, and where it stops.

Each quote links to the public forum thread or help page where it was posted. Below each quote, read what Traders Proxy handles and where our server stops.

MetaTrader 4 & 5Outside a proxy’s job

MT5's own Proxy box overwrites, empties or refuses to save what you type

“I click on Enable proxy server -> Proxy ... -> Give my server , login . password , sock5 Then when i press test or ok , it doesnt go anywhere at all. The cursor goes back to the server field. I tried the same setting on my local computer , it is working fine.”

Why a proxy cannot fix this. We change nothing on your computer. The server, login and password go into your platform's own Proxy setting.

Keep in mind. We change nothing on your computer. If a MetaTrader 5 build fails to save its proxy dialog, we cannot repair the terminal window itself.

MetaTrader 4 & 5Outside a proxy’s job

Order timeouts, 3-minute hangs, 'Off quotes' and 'No connection' when closing

“Sometimes an order get executed on the server-side while my EA is on the way of processing a modify on that order. Everytime that happens it needs to wait full 3 minutes until a 'timeout' error returns”

Why a proxy cannot fix this. Traders Proxy doesn't change spreads, fills or requotes.

Keep in mind. Off quotes, Requote and order timeouts are decided by your broker’s server, not by the proxy route.

Windows VPS & RoutingOutside a proxy’s job

Campus or institution blocks every VPN and proxy as well as trading

“This is what we do at my work, but that is because we do sensitive financial records management. Only traffic to approved sites is permitted on known service ports.”

Why a proxy cannot fix this. We don’t promise to work on networks that block proxies and VPNs.

Keep in mind. Some networks block all proxies. If yours does, we won't get through.

TelegramOutside a proxy’s job

Telegram (trade-signal channels) blocked or throttled by an ISP, state or office firewall

“MTProxy is being blocked by standard corporate DPI firewalls. This makes it useless precisely for the places where you'd want to use it.”

Why a proxy cannot fix this. Telegram in one tap on every plan. Telegram’s own proxy type is included on the 2-device and 5-device plans.

Keep in mind. Telegram in one tap on every plan, plus Telegram’s own proxy type on the 2-device and 5-device plans. A network that inspects traffic can still block it.

Sources

Bring your trading route closer to home.

Set up your proxy login details in under 5 minutes with nothing to install. Connect through our server in your broker’s city and test your platform both ways.

From $9 a month · Stop renewal any time in your dashboard · First payment refunded if your platform can’t connect through us