Skip to main content

Reference databases

MT4 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.