Skip to content

Order rejected on timeout in MT4 or MT5, check before you resend

  • Updated
  • By Traders Proxy
  • 6 min read

The short answer

An order rejected on timeout in MetaTrader 4 (MT4) or MetaTrader 5 (MT5) got no answer in time. Treat its state as unknown, and check your open positions and history before you resend. A requote or a margin rejection is a different rejection, with a different fix.

Warning. Check before you resend

After a timeout, look for the order in your open positions and your history. If you resend without looking, you can end up with two positions.

Your order may have gone through, so check before you resend.

You click Buy or Close as a fast candle moves. The order ticket waits, then MetaTrader 4 (MT4) or MetaTrader 5 (MT5) rejects the order on a timeout. By the time the message clears, the price has moved and you don’t know if you are in.

If you click again without checking, you can open a double position. Look at your open trades and history before you touch the order ticket again.

Four checks before you resend

  1. 01

    Look at open positions

    In MT4, open the Trade tab of the Terminal window. In MT5, open the Trade tab of the Toolbox.

    What it tells you. If the position is there, your order was filled. Don’t send it again.

  2. 02

    Look at the history

    In MT4, open the Account History tab. In MT5, open the History tab, which lists orders and deals.

    What it tells you. A filled or cancelled order here settles what happened.

  3. 03

    Wait for the terminal to reconnect

    If the connection dropped, wait until the terminal is back online. Then read both tabs again, or check from your broker’s phone app.

  4. 04

    Ask your broker if it is unclear

    Your broker’s records decide what happened. Ask support before you trade a position you can’t account for.

A timeout means no answer came back, not that the order failed.

A timeout means no answer came back in time. The order may never have reached your broker. Or your broker may have filled it and the answer got lost on the way back.

A 2006 user reply on the MQL5 forum describes the same doubt. It says an order has three stages. A request, processing and an answer. A timeout doesn’t say which one failed.

The code tells you whether your order’s fate is unknown or it was refused.

MetaTrader rejections that are easy to confuse
RejectionMT4 code and nameMT5 code and nameWhat it tells you
Timeout128, Trade timeout10012, Request canceled by timeoutNo answer came back in time, or the request was cancelled. Treat the state as unknown and check first.
No connection6, No connection with trade server10031, No connection with the trade serverThe terminal was offline when the order was sent, so it never reached your broker.
Requote138, Requote10004, RequoteYour broker got the order and returned new prices. It was not filled at your price.
Price moved or missing135, Price changed. 136, Off quotes10020, Prices changed. 10021, There are no quotes to process the requestA price matter, not a lost answer. The order was refused, not lost.
Margin134, Not enough money10019, There is not enough money to complete the requestThe account didn’t have enough money for the order.
Too many requests8, Too frequent requests. 141, Too many requests10024, Too frequent requestsRequests are arriving too often. Check any program that sends orders.
Server busy4, Trade server is busy. 137, Broker is busyNone that we found in MetaQuotes’ listYour broker’s side was busy. Ask support.

Codes and names are from MetaQuotes’ MQL4 and MQL5 references. A program receives the code. On screen you may see only words, and your broker’s wording can differ.

A requote is about price. MetaQuotes’ help says your broker returns the prices at which the order can be executed. A timeout is about a missing answer, and requotes on gold covers the price case.

Five tests show where the answer got lost, and who can fix it.

Four places can lose it. Your own network, a proxy if you use one, the connection in between, or your broker’s server. The terminal can’t tell you which, so test.

Five tests, in this order

  1. 01

    Read the Journal

    Note the time you sent the order and the time of the rejection. Keep both for your broker.

  2. 02

    Compare with your other apps

    Did anything else stall at that minute? If so, start with your own network.

  3. 03

    Change the network

    Place a few demo orders on a cable, then on a phone hotspot. A demo account may sit on a different server, so this tests your network, not your broker’s live server.

    What it tells you. If timeouts happen on one network only, that network is the cause.

  4. 04

    Turn any proxy off

    If you use a proxy, ours included, repeat with it off. A result that changes points at the proxy.

  5. 05

    Ask your broker

    Give support the two times and ask what its server recorded.

    What it tells you. If its server recorded your order, the answer was lost on the way back to you.

MetaQuotes’ references give no timeout length, so don’t rely on a figure you read elsewhere.

Traders Proxy changes the connection near your broker, not your broker’s server.

Read this candidly before you change your setup. Traders Proxy does not cut order timeouts, speed up order confirmation, or change spreads, fills, requotes or local Expert Advisor (Trade context is busy) locks.

What Traders Proxy does is give your platform its own, separate connection from our server in your broker’s city to your broker. You paste your proxy login details into your platform’s proxy setting on your own computer, so there is no remote-desktop VPS screen in between.

Our server keeps the queue of unsent data short on both of its connections and turns Nagle’s algorithm off so small order packets leave as they arrive. That applies on our servers only, not on your computer or your broker’s server.

If a packet drops on the broker leg, our server recovers it inside that city instead of from your computer. If your device drops off, our server frees its dead connection quickly so your platform can reconnect.

It will not change how your broker’s server handles an order, or fix a loss on your own network. 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 an order is already timing out in a live trade. Paste your proxy login details while the market is calm, before the next release.

Sometimes a cable, a new provider or a VPS is the better fix.

If the tests point at your home internet, fix that first. A cable or a different provider is the direct answer.

If an Expert Advisor must run while your computer is off, a VPS is the right tool. It moves the platform to another computer, and Traders Proxy doesn’t. Traders Proxy or a VPS compares the two.

Frequently asked questions

Was my order placed?

Possibly. A timeout means no answer arrived, not that the order failed. Check your open positions and your history, and ask your broker if they don’t match what you expected.

What is the difference between a timeout and a requote?

A requote means your broker received the order and returned new prices. A timeout means no answer arrived in time, so you don’t yet know what happened.

Can I change the timeout in MT4 or MT5?

Not that we could find. MetaQuotes’ help shows no setting for it. Treat it as outside your control, and test your connection.

What should my Expert Advisor do after a timeout?

Check before it retries. It should look for the order among open positions and history before it sends again. A requote, a margin rejection and a busy server are different codes, not timeouts.

Does Traders Proxy stop order timeouts?

Not on its own. An answer can be lost on your own network or at your broker. On the broker leg, our server recovers dropped packets inside your broker’s city and sends small order packets out at once.

Will my broker mind a proxy?

Check your broker’s terms before you connect. If your broker prohibits proxies, don’t use one on that account. Your broker sees our server’s address, shared across Traders Proxy accounts on that server.

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 & 5Direct fix

A firewall, router or ISP drops the platform's broker connection but lets ordinary web traffic through

“Access to 443 ports is usually available in proxy servers.”

What Traders Proxy handles. Your platform connects to our server through its built-in SOCKS5 or HTTP proxy setting, and our server opens the broker connection inside that city.

Keep in mind. Works only if your network still lets you reach our server. We cannot repair a faulty home router or an ISP outage.

MetaTrader 4 & 5Helps here

'Ping failed' and drops with disconnects every few minutes, re-login loops and dropped sessions

“Is the chart freezing, or is it the terminal? If it is the terminal, then it is likely a broken indicator.”

What our server improves. If your device drops off, our server notices quickly and frees its place, so your platform can reconnect instead of hanging.

Keep in mind. We do not prevent internet drops or fix broker faults. After a disconnect, your platform logs in again, so always use broker-side stop-loss orders.

Windows VPS & RoutingSkipped by design

Remote-desktop session freezes, drops, or shows "connection has been lost"

“UDP-based transport offers better connection reliability and more consistent latency. TCP-based reverse connect transport provides the best compatibility with various networking configurations and has a high success rate for establishing RDP connections.”

How local trading avoids this. Your platform runs on your own computer, so there's no remote-desktop session to freeze or drop.

Keep in mind. Your platform's connection to our server can still drop. We notice quickly and your platform can reconnect, but we never promise it won't happen.

cTraderWhen to skip a proxy

cTrader picks a far Spotware proxy node that you cannot choose

“The login and Password fields are: Login : Your local proxy login Password : Your local proxy password”

Why a proxy is the wrong fit. cTrader for Windows has a proxy setting and Traders Proxy supports it over HTTP. cTrader still chooses its own servers.

Keep in mind. In cTrader on Windows, the Connection proxy setting routes your connection to Spotware’s cloud. Spotware still picks its own cloud node on the far side.

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