YI GOLD

MT4 / MT5 Error Codes & Trading Tools

Search official trade, runtime and compilation codes and warnings. Calculate risk using actual contract specifications.

Position & Risk

Size exposure using equity, stop distance and actual specifications.

Open calculator
Advanced contract parameters

Margin & Value

Estimate margin, tick value and price-move value.

Open calculator
Advanced contract parameters

Compound & Drawdown

A mathematical scenario, not a forecast of strategy returns.

Open calculator

Calculations run locally in your browser. Inputs are not uploaded or saved. Terminal and broker margin rules apply; estimates exclude slippage, commission and swap.

Official error code lookup

1171 matching records

Platform / categoryCode / constantOfficial meaningTroubleshooting
MT5 · Runtime errors5618 ERR_DATABASE_TOOBIGString or BLOB exceeds size limit
YI GOLD suggestions

Inspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description.

MetaQuotes
MT5 · Runtime errors5619 ERR_DATABASE_CONSTRAINTAbort due to constraint violation
YI GOLD suggestions

Inspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description.

MetaQuotes
MT5 · Runtime errors5620 ERR_DATABASE_MISMATCHData type mismatch
YI GOLD suggestions

Inspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description.

MetaQuotes
MT5 · Runtime errors5621 ERR_DATABASE_MISUSELibrary used incorrectly
YI GOLD suggestions

Inspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description.

MetaQuotes
MT5 · Runtime errors5622 ERR_DATABASE_NOLFSUses OS features not supported on host
YI GOLD suggestions

Inspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description.

MetaQuotes
MT5 · Runtime errors5623 ERR_DATABASE_AUTHAuthorization denied
YI GOLD suggestions

Inspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description.

MetaQuotes
MT5 · Runtime errors5624 ERR_DATABASE_FORMATNot used
YI GOLD suggestions

Inspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description.

MetaQuotes
MT5 · Runtime errors5625 ERR_DATABASE_RANGEBind parameter error, incorrect index
YI GOLD suggestions

Check length, bounds, dynamic-array declarations and ArraySetAsSeries. Validate returned element counts before access.

MetaQuotes
MT5 · Runtime errors5626 ERR_DATABASE_NOTADBFile opened that is not database file
YI GOLD suggestions

Check permitted terminal sandbox paths, names, access flags, formats and handles. Record open failures without granting permissive directory access.

MetaQuotes
MT5 · Runtime errors5700 ERR_MATRIX_INTERNALInternal error of the matrix/vector executing subsystem
YI GOLD suggestions

Inspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description.

MetaQuotes
MT5 · Runtime errors5701 ERR_MATRIX_NOT_INITIALIZEDMatrix/vector not initialized
YI GOLD suggestions

Inspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description.

MetaQuotes
MT5 · Runtime errors5702 ERR_MATRIX_INCONSISTENTInconsistent size of matrices/vectors in operation
YI GOLD suggestions

Inspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description.

MetaQuotes
MT5 · Runtime errors5703 ERR_MATRIX_INVALID_SIZEInvalid matrix/vector size
YI GOLD suggestions

Inspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description.

MetaQuotes
MT5 · Runtime errors5704 ERR_MATRIX_INVALID_TYPEInvalid matrix/vector type
YI GOLD suggestions

Inspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description.

MetaQuotes
MT5 · Runtime errors5705 ERR_MATRIX_FUNC_NOT_ALLOWEDFunction not available for this matrix/vector
YI GOLD suggestions

Inspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description.

MetaQuotes
MT5 · Runtime errors5706 ERR_MATRIX_CONTAINS_NANMatrix/vector contains non-numbers (Nan/Inf)
YI GOLD suggestions

Inspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description.

MetaQuotes
MT5 · Runtime errors5707 ERR_MATRIX_OPENBLASError during execution of an OpenBLAS function
YI GOLD suggestions

Inspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description.

MetaQuotes
MT5 · Runtime errors5708 ERR_MATRIX_OPENBLAS_PARAMETERInvalid parameter of an OpenBLAS function
YI GOLD suggestions

Compare each argument and reference mode with the official signature. Validate ranges and preserve relevant failure context.

MetaQuotes
MT5 · Runtime errors5800 ERR_ONNX_INTERNALONNX internal error
YI GOLD suggestions

Inspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description.

MetaQuotes
MT5 · Runtime errors5801 ERR_ONNX_NOT_INITIALIZEDONNX Runtime API initialization error
YI GOLD suggestions

Inspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description.

MetaQuotes
MT5 · Runtime errors5802 ERR_ONNX_NOT_SUPPORTEDProperty or value not supported by MQL5
YI GOLD suggestions

Inspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description.

MetaQuotes
MT5 · Runtime errors5803 ERR_ONNX_RUN_FAILEDONNX runtime API run error
YI GOLD suggestions

Inspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description.

MetaQuotes
MT5 · Runtime errors5804 ERR_ONNX_INVALID_PARAMETERS_COUNTInvalid number of parameters passed to OnnxRun
YI GOLD suggestions

Compare each argument and reference mode with the official signature. Validate ranges and preserve relevant failure context.

MetaQuotes
MT5 · Runtime errors5805 ERR_ONNX_INVALID_PARAMETERInvalid parameter value
YI GOLD suggestions

Compare each argument and reference mode with the official signature. Validate ranges and preserve relevant failure context.

MetaQuotes
MT5 · Runtime errors5806 ERR_ONNX_INVALID_PARAMETER_TYPEInvalid parameter type
YI GOLD suggestions

Compare each argument and reference mode with the official signature. Validate ranges and preserve relevant failure context.

MetaQuotes
MT5 · Runtime errors5807 ERR_ONNX_INVALID_PARAMETER_SIZEInvalid parameter size
YI GOLD suggestions

Compare each argument and reference mode with the official signature. Validate ranges and preserve relevant failure context.

MetaQuotes
MT5 · Runtime errors5808 ERR_ONNX_WRONG_DIMENSIONTensor dimension not set or invalid
YI GOLD suggestions

Inspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description.

MetaQuotes
MT5 · Runtime errors65536 ERR_USER_ERROR_FIRSTUser defined errors start with this code
YI GOLD suggestions

Inspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description.

MetaQuotes
MT5 · Trade return codes10004 TRADE_RETCODE_REQUOTERequote
YI GOLD suggestions

Read the latest bid/ask and quote time. Check precision and allowed deviation; stop increasing exposure with stale quotes.

MetaQuotes
MT5 · Trade return codes10006 TRADE_RETCODE_REJECTRequest rejected
YI GOLD suggestions

Check permissions, sessions, symbol specifications, quotes and request parameters. Reproduce in a demo account. Do not retry rejected requests indefinitely.

MetaQuotes
MT5 · Trade return codes10007 TRADE_RETCODE_CANCELRequest canceled by trader
YI GOLD suggestions

Check permissions, sessions, symbol specifications, quotes and request parameters. Reproduce in a demo account. Do not retry rejected requests indefinitely.

MetaQuotes
MT5 · Trade return codes10008 TRADE_RETCODE_PLACEDOrder placed
YI GOLD suggestions

Check permissions, sessions, symbol specifications, quotes and request parameters. Reproduce in a demo account. Do not retry rejected requests indefinitely.

MetaQuotes
MT5 · Trade return codes10009 TRADE_RETCODE_DONERequest completed
YI GOLD suggestions

Check permissions, sessions, symbol specifications, quotes and request parameters. Reproduce in a demo account. Do not retry rejected requests indefinitely.

MetaQuotes
MT5 · Trade return codes10010 TRADE_RETCODE_DONE_PARTIALOnly part of the request was completed
YI GOLD suggestions

Check permissions, sessions, symbol specifications, quotes and request parameters. Reproduce in a demo account. Do not retry rejected requests indefinitely.

MetaQuotes
MT5 · Trade return codes10011 TRADE_RETCODE_ERRORRequest processing error
YI GOLD suggestions

Check permissions, sessions, symbol specifications, quotes and request parameters. Reproduce in a demo account. Do not retry rejected requests indefinitely.

MetaQuotes
MT5 · Trade return codes10012 TRADE_RETCODE_TIMEOUTRequest canceled by timeout
YI GOLD suggestions

Inspect connectivity, logs and request time. Verify actual order status before bounded retries with backoff to avoid duplicate exposure after a timeout.

MetaQuotes
MT5 · Trade return codes10013 TRADE_RETCODE_INVALIDInvalid request
YI GOLD suggestions

Check permissions, sessions, symbol specifications, quotes and request parameters. Reproduce in a demo account. Do not retry rejected requests indefinitely.

MetaQuotes
MT5 · Trade return codes10014 TRADE_RETCODE_INVALID_VOLUMEInvalid volume in the request
YI GOLD suggestions

Read volume_min, volume_max, volume_step and volume_limit for the actual symbol. Round down to the step; do not send an order below minimum volume.

MetaQuotes
MT5 · Trade return codes10015 TRADE_RETCODE_INVALID_PRICEInvalid price in the request
YI GOLD suggestions

Read the latest bid/ask and quote time. Check precision and allowed deviation; stop increasing exposure with stale quotes.

MetaQuotes
MT5 · Trade return codes10016 TRADE_RETCODE_INVALID_STOPSInvalid stops in the request
YI GOLD suggestions

Check bid/ask, point, digits, stops_level and freeze_level. Recalculate distances; do not remove protection merely to force a fill.

MetaQuotes

Official meanings and YI GOLD suggestions are presented separately. References are verified during version builds; page visits do not fetch external sites.