metatrader-error-codes / mql_runtime_errors.csv
tekkick's picture
MetaTrader error code cross-reference: MT4, MT5 retcodes, MQL runtime (CC BY 4.0)
63b9c5d verified
Raw History Blame Contribute Delete
905 Bytes
runtime_code,name,what_it_means,where_the_real_reason_is
4752,ERR_TRADE_DISABLED,Trading by expert advisors is prohibited,Retcode 10027 — the Algo Trading button or EA permission
4753,ERR_TRADE_POSITION_NOT_FOUND,The position ticket does not exist,Usually a netting account that has already merged the position
4754,ERR_TRADE_ORDER_NOT_FOUND,The order ticket does not exist,"Already filled, cancelled, or the wrong ticket"
4755,ERR_TRADE_DEAL_NOT_FOUND,The deal ticket does not exist,History not yet selected with HistorySelect()
4756,ERR_TRADE_SEND_FAILED,"The trade request was not sent, or was rejected",MqlTradeResult.retcode — any of the codes in the table above
4758,ERR_TRADE_CALC_FAIL,OrderCalcMargin or OrderCalcProfit failed,"Bad symbol, volume or price passed to the calculation"
4759,ERR_TRADE_WRONG_PROPERTY,Wrong trade property requested,"A code error in the EA, not the broker"