Skip to content

MT5 errors and return codes

View as Markdown

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.

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

Not sure where your problem is? Find where the alert stopped.

Verified for EA v1.9 · dashboard 2026-10-05 · reviewed by Claude Code (owner review pending)

Report a problem with this page

Trading involves substantial risk of loss. ZB Connector is software only; it does not provide investment advice, signals or brokerage services.