In short: 4756 means the order was not sent; the 10xxx code next to it gives the reason, most often not enough free margin (10019) or a wrong lot size (10014).

Error 4756 says an MT5 order failed to send; the 10xxx code beside it, if the EA logs one, says why. 10019 means not enough money (free margin), 10014 a lot that breaks the symbol's minimum, step or maximum, 10030 a filling type the symbol does not allow, 10016 invalid stops, 10013 an invalid request.
Find your number in the table and run the first check beside it. Meanings come from the MetaQuotes MQL5 reference, whose tables grow. Grid figures are arithmetic of the settings (the formulas of our free grid and margin calculators), calculated on 8 October 2026, not a forecast.
On this page (12)
Where do you see the error: Experts or Journal, retcode or runtime error?
MT5 keeps two logs in the Toolbox window (View → Toolbox or Ctrl+T). Experts shows what running Expert Advisors and indicators print. Journal shows the actions of the trader and the platform in the current session, trade operations included (MetaTrader 5 Help). Older lines are in dated YYYYMMDD.LOG files (EA logs in MQL5\Logs); the Open command in the tab's menu opens the folder and saves the current lines to the files.
A retcode (10004 to 10046) is the trade server's reply to a request. A runtime error (4000s) is raised inside the terminal when a call fails. Think of a returned parcel: the runtime error is the "not delivered" stamp, the retcode is the reason written on the slip. An EA may print both, for example "error 4756 ... retcode 10019", or the Journal may show words such as "failed market buy ... [Invalid stops]". Wording varies by EA, build and language, so match words to the "official meaning" column below.
Which code means what, and what do you check first?
Money and lot-size problems come first, because a doubling grid reaches them at deep orders.
| Code | Official meaning (MQL5 reference) | First check |
|---|---|---|
| 10019 | There is not enough money to complete the request | Free margin against margin of this order |
| 10014 | Invalid volume in the request | Minimum, step, maximum volume |
| 10030 | Invalid order filling type | Filling policies of the symbol |
| 10016 | Invalid stops in the request | Distance of stop-loss and take-profit |
| 10013 | Invalid request | Account type and EA version |
| 4756 | Trade request sending failed | The retcode printed next to it |
| 10031 | No connection with the trade server | Connection indicator, VPS network |
| 10026, 10027 | Autotrading disabled by server, by client terminal | Autotrading disabled |
| 4014 | Function is not allowed for call | WebRequest not allowed |
What does MT5 error 10019 "not enough money" mean when an EA stops opening orders?
Error 10019, "not enough money", means the trade server refused the order because the margin it needs is more than the free margin; positions that are already open stay open. A grid EA reaches it on its deepest orders.
The usual model: equity must cover the margin of all open positions plus the new order, which is the same as margin level staying at 100% or above. The reference's check result reports the free margin left after the operation (MqlTradeCheckResult); your broker's server has the final word. A martingale grid trips it because each order doubles the margin while floating loss shrinks equity.
Worked example: cent account, gold at 4,170, leverage 1:100, contract 100 oz, start lot 0.01, multiplier ×2, 11 orders, step $1.95. Margin for 1.00 lot is 100 oz × 4,170 ÷ 100 = 4,170 USC, which is $41.70. The 11th order is 10.24 lots and alone needs $427.01. The basket then holds $853.60 of margin, and the first ten orders are $39.70 under water.
| Order | Lot | Margin held | Loss when it opens | Needed on the account |
|---|---|---|---|---|
| 9 | 2.56 | $213.09 | $9.79 | $222.88 |
| 10 | 5.12 | $426.59 | $19.75 | $446.34 |
| 11 | 10.24 | $853.60 | $39.70 | $893.30 |
A $1,000 balance lets all 11 orders through (margin level at the 11th: 112.5%). An $800 balance gets 10019 on the 11th. The $893.30 is the bare minimum for that one order to pass, not a suggested balance. At 1:2000 the same ladder needs only $82.38: leverage changes the margin held, not the loss per $1 of gold ($20.47 for the full basket on a cent account). The model ignores spread, hedged-margin discounts and your broker's margin rate, so it is not your server's number.
After a 10019 on a deep order the ten open orders stay open and keep carrying the loss. First check: free margin and leverage, the failed order's lot, the margin in the symbol specification. Margin call vs stop-out covers what follows.
How do you fix MT5 error 10014, invalid volume?
MT5 error 10014 means the order's lot breaks the symbol's rules: it is below the minimum volume, not a multiple of the volume step, or above the maximum for one deal. Compare the failed lot in the log with those three values in the Specification.
The limits are set in the symbol's properties (symbol properties); outside them, the answer is 10014. A doubling grid hits the maximum: start at 0.01, double ten times, and the 11th order is 10.24 lots. If your symbol's maximum is lower, that order cannot go out as one order.
A multiplier of 1.5 hits the step instead: 0.01 × 1.5 is 0.015, not a multiple of 0.01, so the ladder must be rounded. Our calculator rounds down: 0.01, 0.01, 0.02, 0.03, 0.05, 0.07, 0.11, 0.17, 0.25, 0.38, 0.57. How an EA rounds is its author's choice.
A neighbour, 10034 ("the volume of orders and positions for the symbol has reached the limit"), most likely matches the symbol's volume limit, defined as the aggregate volume of an open position and pending orders in one direction. A one-sided grid sits in one direction. First check for both: Market Watch, right-click gold, Specification.
What do MT5 errors 10030 (unsupported filling mode), 10016 (invalid stops) and 10013 (invalid request) mean?
Error 10030 means the order asks for a filling type the symbol does not allow; 10016 means invalid stops, and 10013 means the request is inconsistent as a whole. Each has its own first check below.
10016, invalid stops. The reference gives only the title. The usual reading: a stop-loss or take-profit is closer to the price than the stops level, the minimal distance in points from the current close price, or on the wrong side of it (symbol properties). On a gold symbol with two decimals, 50 points is $0.50. A trailing stop can get 10016 when the new stop lands inside that distance. The freeze level (distance within which trade operations are frozen) most likely goes with 10029, "Order or position frozen". First check: the stops level, and whether the EA's distances are in points or dollars.
10030, invalid fill. The request asked for a filling type the symbol does not allow: Fill or Kill (all or nothing), Immediate or Cancel (fill what is available, cancel the rest) or Return. Under market execution Return is not allowed and the other two need the symbol's permission (order properties). So one EA can work on one account and get 10030 on another. First check: the filling policies in the specification.
10013, invalid request. The catch-all: the request is inconsistent as a whole. Rule out the account type first. On a hedging account a request to change or close a position must carry its ticket; on a netting account the position is identified by its symbol (MqlTradeRequest). An EA written for one type and run on the other may send a request the server rejects. The reference does not name this as a cause, so treat it as a lead. First check: the account type, shown (MetaQuotes says) in the terminal window header and in the Journal (build 1295 notes), and the EA version.
What does MT5 error 4756 (trade request sending failed) mean?
Error 4756 means an MT5 trade request failed to send, and the number itself gives no reason. The reason is the 10xxx retcode of the trade result, so look for it in the Experts and Journal tabs at the same timestamp.
The reference lists 4756 as ERR_TRADE_SEND_FAILED, "Trade request sending failed", with no reason (runtime errors). Most likely it is a general message: the program called OrderSend, the request failed, and the number says only that. The reason is in the retcode of the trade result, which the reference tells EA code to check first, because a true from OrderSend "is not a sign of successful execution" (OrderSend).
So look for a 10xxx code at the same timestamp: 10019, 10014, 10030, 10016 or 10017 ("Trade is disabled") may sit beside it. If the log has 4756 alone, say exactly that when you write to the EA author or the broker.
What do 4014 and 10026 / 10027 mean, and where are they explained?
10026 and 10027, autotrading disabled by the server or the client terminal, have their own page: automated trading is disabled in MT5. 4014 is covered in WebRequest not allowed in MT5, with what the reference says and does not say about its causes. Terms like free margin and stop-out are in the grid EA glossary.
What do 10031 (no connection) and 10018 (market closed) mean in MT5?
10031 means the terminal has no connection with the trade server. Check the connection indicator at the bottom right and the Journal lines whose source is Network. On a VPS, confirm the terminal is running and logged in; does an EA run when the PC is off covers the rest. 10018 is "Market is closed": check the symbol's sessions.
What should you put in a message to the broker or the EA author?
"It doesn't work" cannot be answered. This can:
- Log lines from the Experts and Journal tabs around the failed order, copied as text, with date and time.
- The code, and the lot, type and price of the failed order.
- The account: server, hedging or netting, cent or standard, leverage; balance, equity and free margin at that moment.
- Specification values, EA name and version, terminal build. No passwords or license key; write xxx instead.
If the EA is Midas, support goes through the Telegram bot @MidasGridBot. Its troubleshooting page lists first checks for an EA that is not trading, and the install guide covers the first run.
What can go wrong?
- A refused order is not a closed position. If order 11 gets 10019, ten orders keep floating and the broker's stop-out rule still applies.
- Fixing the symptom can enlarge the exposure. More balance or leverage lets more orders through; the full basket still moves $20.47 per $1 of gold in the example.
- Codes and wording change. Builds, brokers and languages differ.
This is arithmetic of the settings, not a forecast. Trading with leverage carries risk: if the deposit is too small, a stop-out is possible. Size your deposit with a safety margin. Nothing here is individual investment advice. More in Risk, plainly.
Sources
Retrieved 8 October 2026: MQL5 reference trade server return codes, runtime errors, OrderSend, MqlTradeRequest, MqlTradeCheckResult, symbol properties, order properties; MetaTrader 5 Help: platform logs, hot keys, build 1295 release notes.
FAQ
What is MT5 error 4756 and where is its reason?
Error 4756 is ERR_TRADE_SEND_FAILED, "Trade request sending failed". It says the order did not go through, not why. The reason is in the retcode printed next to it, if the EA logs it: 10019 (money), 10014 (volume), 10030 (filling) or 10016 (stops), for example.
What does MT5 error 10019 mean?
Code 10019 means "There is not enough money to complete the request": free margin after the new order would fall below what the server requires. It can appear on deep grid orders, where each order doubles the margin. It does not close positions that are already open.
Why does a grid EA get MT5 error 10014 on its deepest order?
A doubling grid grows its lot with every order, so the deepest order can break the symbol's volume rules. From a 0.01 start with a multiplier of 2, the 11th order is 10.24 lots, and if the symbol's maximum is lower it cannot go out as one order. A multiplier of 1.5 breaks the volume step instead, so lots must be rounded.
What does "unsupported filling mode" (error 10030) mean in MT5?
Error 10030 means "Invalid order filling type": the order asked for a filling type the symbol does not allow, such as Fill or Kill, Immediate or Cancel or Return. Under market execution Return is not allowed and the other two need the symbol's permission. Check the filling policies in the Specification, because the same EA can work on one account and fail on another.
Why is my MT5 Expert Advisor not trading, and which error code explains it?
Open the Experts and Journal tabs (Ctrl+T) around the moment you expected a trade and look for a retcode: 10019 not enough money, 10014 invalid volume, 10018 market closed, 10026 or 10027 autotrading disabled. No code at all usually means the EA never sent an order. Each code has its own first check: free margin for 10019, minimum, step and maximum volume for 10014.
Where can I find the full list of MT5 error codes?
The MQL5 reference has two tables: trade server return codes (10004 to 10046), which are the trade server's replies to a request, and runtime errors (4000s and up), which the terminal raises when a call fails. The tables grow, so re-check them. The Midas guide to MT5 EA error codes covers 4756, 10013, 10014, 10016, 10019, 10030, 10031, 10026, 10027 and 4014.