# MT5 errors and return codes

> Every MT5 trade return code and trade runtime error ZB Connector reports, one page per code, with the likeliest ones explained step by step.

Source: https://zb-connector.com/docs/troubleshooting/errors/

When a trade fails at your broker, the dashboard shows the reason next to the command (hover **Failed** in Command History) and in the notification. This page lists all 48 codes ZB Connector knows; each one has its own page. The codes under “Explained step by step” also list the usual causes and fixes.

Type the number you saw in the filter. The wording of each code is MetaQuotes’ own.

## Explained step by step

-   [10014: Invalid volume in the request](https://zb-connector.com/docs/troubleshooting/errors/10014/)
-   [10016: Invalid stops in the request](https://zb-connector.com/docs/troubleshooting/errors/10016/)
-   [10018: Market is closed](https://zb-connector.com/docs/troubleshooting/errors/10018/)
-   [10019: Not enough money to complete the request](https://zb-connector.com/docs/troubleshooting/errors/10019/)
-   [10026: Autotrading disabled by server](https://zb-connector.com/docs/troubleshooting/errors/10026/)
-   [10027: Autotrading disabled by client terminal](https://zb-connector.com/docs/troubleshooting/errors/10027/)
-   [10030: Invalid order filling type](https://zb-connector.com/docs/troubleshooting/errors/10030/)
-   [4756: Trade request sending failed](https://zb-connector.com/docs/troubleshooting/errors/4756/)

## Trade return codes

| Code | Meaning | Type |
| --- | --- | --- |
| [10004](https://zb-connector.com/docs/troubleshooting/errors/10004/) | Requote | Trade return code |
| [10006](https://zb-connector.com/docs/troubleshooting/errors/10006/) | Request rejected | Trade return code |
| [10007](https://zb-connector.com/docs/troubleshooting/errors/10007/) | Request canceled by trader | Trade return code |
| [10008](https://zb-connector.com/docs/troubleshooting/errors/10008/) | Order placed | Trade return code (success) |
| [10009](https://zb-connector.com/docs/troubleshooting/errors/10009/) | Request completed | Trade return code (success) |
| [10010](https://zb-connector.com/docs/troubleshooting/errors/10010/) | Only part of the request was completed | Trade return code |
| [10011](https://zb-connector.com/docs/troubleshooting/errors/10011/) | Request processing error | Trade return code |
| [10012](https://zb-connector.com/docs/troubleshooting/errors/10012/) | Request canceled by timeout | Trade return code |
| [10013](https://zb-connector.com/docs/troubleshooting/errors/10013/) | Invalid request | Trade return code |
| [10014](https://zb-connector.com/docs/troubleshooting/errors/10014/) | Invalid volume in the request | Trade return code |
| [10015](https://zb-connector.com/docs/troubleshooting/errors/10015/) | Invalid price in the request | Trade return code |
| [10016](https://zb-connector.com/docs/troubleshooting/errors/10016/) | Invalid stops in the request | Trade return code |
| [10017](https://zb-connector.com/docs/troubleshooting/errors/10017/) | Trade is disabled | Trade return code |
| [10018](https://zb-connector.com/docs/troubleshooting/errors/10018/) | Market is closed | Trade return code |
| [10019](https://zb-connector.com/docs/troubleshooting/errors/10019/) | Not enough money to complete the request | Trade return code |
| [10020](https://zb-connector.com/docs/troubleshooting/errors/10020/) | Prices changed | Trade return code |
| [10021](https://zb-connector.com/docs/troubleshooting/errors/10021/) | No quotes to process the request | Trade return code |
| [10022](https://zb-connector.com/docs/troubleshooting/errors/10022/) | Invalid order expiration date in the request | Trade return code |
| [10023](https://zb-connector.com/docs/troubleshooting/errors/10023/) | Order state changed | Trade return code |
| [10024](https://zb-connector.com/docs/troubleshooting/errors/10024/) | Too frequent requests | Trade return code |
| [10025](https://zb-connector.com/docs/troubleshooting/errors/10025/) | No changes in request | Trade return code |
| [10026](https://zb-connector.com/docs/troubleshooting/errors/10026/) | Autotrading disabled by server | Trade return code |
| [10027](https://zb-connector.com/docs/troubleshooting/errors/10027/) | Autotrading disabled by client terminal | Trade return code |
| [10028](https://zb-connector.com/docs/troubleshooting/errors/10028/) | Request locked for processing | Trade return code |
| [10029](https://zb-connector.com/docs/troubleshooting/errors/10029/) | Order or position frozen | Trade return code |
| [10030](https://zb-connector.com/docs/troubleshooting/errors/10030/) | Invalid order filling type | Trade return code |
| [10031](https://zb-connector.com/docs/troubleshooting/errors/10031/) | No connection with the trade server | Trade return code |
| [10032](https://zb-connector.com/docs/troubleshooting/errors/10032/) | Operation allowed only for live accounts | Trade return code |
| [10033](https://zb-connector.com/docs/troubleshooting/errors/10033/) | Pending-order limit reached | Trade return code |
| [10034](https://zb-connector.com/docs/troubleshooting/errors/10034/) | Order/position volume limit for the symbol reached | Trade return code |
| [10035](https://zb-connector.com/docs/troubleshooting/errors/10035/) | Incorrect or prohibited order type | Trade return code |
| [10036](https://zb-connector.com/docs/troubleshooting/errors/10036/) | Position already closed | Trade return code |
| [10038](https://zb-connector.com/docs/troubleshooting/errors/10038/) | Close volume exceeds the current position volume | Trade return code |
| [10039](https://zb-connector.com/docs/troubleshooting/errors/10039/) | A close order already exists for this position | Trade return code |
| [10040](https://zb-connector.com/docs/troubleshooting/errors/10040/) | Open-positions limit reached | Trade return code |
| [10041](https://zb-connector.com/docs/troubleshooting/errors/10041/) | Pending order activation rejected; order canceled | Trade return code |
| [10042](https://zb-connector.com/docs/troubleshooting/errors/10042/) | Rejected: only long positions are allowed for the symbol | Trade return code |
| [10043](https://zb-connector.com/docs/troubleshooting/errors/10043/) | Rejected: only short positions are allowed for the symbol | Trade return code |
| [10044](https://zb-connector.com/docs/troubleshooting/errors/10044/) | Rejected: only position closing is allowed for the symbol | Trade return code |
| [10045](https://zb-connector.com/docs/troubleshooting/errors/10045/) | Rejected: position closing allowed only by FIFO rule | Trade return code |
| [10046](https://zb-connector.com/docs/troubleshooting/errors/10046/) | Rejected: opposite positions on a single symbol are disabled | Trade return code |

## Trade runtime errors

| Code | Meaning | Type |
| --- | --- | --- |
| [4751](https://zb-connector.com/docs/troubleshooting/errors/4751/) | Wrong trade property ID | Runtime error |
| [4752](https://zb-connector.com/docs/troubleshooting/errors/4752/) | Trading by Expert Advisors prohibited | Runtime error |
| [4753](https://zb-connector.com/docs/troubleshooting/errors/4753/) | Position not found | Runtime error |
| [4754](https://zb-connector.com/docs/troubleshooting/errors/4754/) | Order not found | Runtime error |
| [4755](https://zb-connector.com/docs/troubleshooting/errors/4755/) | Deal not found | Runtime error |
| [4756](https://zb-connector.com/docs/troubleshooting/errors/4756/) | Trade request sending failed | Runtime error |
| [4758](https://zb-connector.com/docs/troubleshooting/errors/4758/) | Failed to calculate profit or margin | Runtime error |

Not sure where your problem is? [Find where the alert stopped](https://zb-connector.com/docs/troubleshooting/find-where-it-stopped/).
