Reference databases
MT5 Error Database
mt5_errors_body
| Code | Name | Meaning |
|---|---|---|
| 0 | ERR_NO_ERROR | No error; the request completed successfully. |
| 1 | ERR_NO_RESULT | No error, but no result either. Usually requires a retry. |
| 2 | ERR_COMMON_ERROR | Generic error, usually caused by parameters or connection state. |
| 3 | ERR_INVALID_TRADE_PARAMETERS | Invalid trade parameters such as volume, price, stop loss or take profit. |
| 4 | ERR_SERVER_BUSY | The trade server is busy; retry shortly. |
| 6 | ERR_NO_CONNECTION | No connection to the trade server. |
| 8 | ERR_TOO_FREQUENT_REQUESTS | Requests are too frequent and were throttled by the server. |
| 64 | ERR_TRADE_DISABLED | Automated trading is disabled for this account. |
| 65 | ERR_INVALID_ACCOUNT | Invalid account number. |
| 128 | ERR_TRADE_TIMEOUT | The trade request timed out. |
| 129 | ERR_INVALID_PRICE | Invalid price; it may have moved away from the current market price. |
| 130 | ERR_INVALID_STOPS | Stop loss or take profit is too close for this broker. |
| 131 | ERR_INVALID_TRADE_VOLUME | Invalid trade volume. |
| 132 | ERR_MARKET_CLOSED | The market is closed. |
| 133 | ERR_TRADE_DISABLED_BY_BROKER | Trading has been disabled by the broker. |
| 134 | ERR_NOT_ENOUGH_MONEY | Not enough free margin. |
| 135 | ERR_PRICE_CHANGED | The price changed; the request needs a new quote. |
| 136 | ERR_OFF_QUOTES | No quotes available to process the request. |
| 137 | ERR_BROKER_BUSY | The broker is busy. |
| 138 | ERR_REQUOTE | A requote was received; the price was refreshed. |
| 139 | ERR_ORDER_LOCKED | The order is locked and currently being processed. |
| 140 | ERR_LONG_POSITIONS_ONLY_ALLOWED | Only long positions are currently allowed for this symbol. |
| 141 | ERR_TOO_MANY_REQUESTS | Too many requests. |
| 145 | ERR_TRADE_MODIFY_DENIED | Order modification denied because it is too close to the market. |
| 146 | ERR_TRADE_CONTEXT_BUSY | The trade context is busy. |
| 147 | ERR_TRADE_EXPIRATION_DENIED | The server does not allow order expiration. |
| 148 | ERR_TOO_MANY_OPEN_POSITIONS | The maximum number of open positions has been reached. |
| 149 | ERR_HEDGING_NOT_ALLOWED | Hedging is not allowed on this account. |
| 150 | ERR_PROHIBITED_BY_FIFO | The request violates FIFO rules. |
| 10004 | TRADE_RETCODE_REQUOTE | Requote. |
| 10006 | TRADE_RETCODE_REJECT | The request was rejected by the dealer. |
| 10009 | TRADE_RETCODE_DONE | The request completed. |
| 10013 | TRADE_RETCODE_INVALID | The request is invalid. |
| 10014 | TRADE_RETCODE_INVALID_VOLUME | Invalid volume in the request. |
| 10015 | TRADE_RETCODE_INVALID_PRICE | Invalid price in the request. |
| 10016 | TRADE_RETCODE_INVALID_STOPS | Invalid stops. |
| 10017 | TRADE_RETCODE_TRADE_DISABLED | Trading is disabled. |
| 10018 | TRADE_RETCODE_MARKET_CLOSED | The market is closed. |
| 10019 | TRADE_RETCODE_NO_MONEY | Not enough money. |
| 10021 | TRADE_RETCODE_PRICE_OFF | No quotes to process the request. |
| 10024 | TRADE_RETCODE_TOO_MANY_REQUESTS | Too many requests. |
| 10027 | TRADE_RETCODE_CLIENT_DISABLES_AT | Automated trading is disabled in the client terminal. |
| 10030 | TRADE_RETCODE_INVALID_FILL | Unsupported filling mode. |
| 10031 | TRADE_RETCODE_CONNECTION | No connection to the trade server. |