Position & Risk
Size exposure using equity, stop distance and actual specifications.
Search official trade, runtime and compilation codes and warnings. Calculate risk using actual contract specifications.
Size exposure using equity, stop distance and actual specifications.
Estimate margin, tick value and price-move value.
A mathematical scenario, not a forecast of strategy returns.
Calculations run locally in your browser. Inputs are not uploaded or saved. Terminal and broker margin rules apply; estimates exclude slippage, commission and swap.
1171 matching records
| Platform / category | Code / constant | Official meaning | Troubleshooting |
|---|---|---|---|
| MT5 · Runtime errors | 5618 ERR_DATABASE_TOOBIG | String or BLOB exceeds size limit | YI GOLD suggestionsInspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description. MetaQuotes |
| MT5 · Runtime errors | 5619 ERR_DATABASE_CONSTRAINT | Abort due to constraint violation | YI GOLD suggestionsInspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description. MetaQuotes |
| MT5 · Runtime errors | 5620 ERR_DATABASE_MISMATCH | Data type mismatch | YI GOLD suggestionsInspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description. MetaQuotes |
| MT5 · Runtime errors | 5621 ERR_DATABASE_MISUSE | Library used incorrectly | YI GOLD suggestionsInspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description. MetaQuotes |
| MT5 · Runtime errors | 5622 ERR_DATABASE_NOLFS | Uses OS features not supported on host | YI GOLD suggestionsInspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description. MetaQuotes |
| MT5 · Runtime errors | 5623 ERR_DATABASE_AUTH | Authorization denied | YI GOLD suggestionsInspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description. MetaQuotes |
| MT5 · Runtime errors | 5624 ERR_DATABASE_FORMAT | Not used | YI GOLD suggestionsInspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description. MetaQuotes |
| MT5 · Runtime errors | 5625 ERR_DATABASE_RANGE | Bind parameter error, incorrect index | YI GOLD suggestionsCheck length, bounds, dynamic-array declarations and ArraySetAsSeries. Validate returned element counts before access. MetaQuotes |
| MT5 · Runtime errors | 5626 ERR_DATABASE_NOTADB | File opened that is not database file | YI GOLD suggestionsCheck permitted terminal sandbox paths, names, access flags, formats and handles. Record open failures without granting permissive directory access. MetaQuotes |
| MT5 · Runtime errors | 5700 ERR_MATRIX_INTERNAL | Internal error of the matrix/vector executing subsystem | YI GOLD suggestionsInspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description. MetaQuotes |
| MT5 · Runtime errors | 5701 ERR_MATRIX_NOT_INITIALIZED | Matrix/vector not initialized | YI GOLD suggestionsInspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description. MetaQuotes |
| MT5 · Runtime errors | 5702 ERR_MATRIX_INCONSISTENT | Inconsistent size of matrices/vectors in operation | YI GOLD suggestionsInspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description. MetaQuotes |
| MT5 · Runtime errors | 5703 ERR_MATRIX_INVALID_SIZE | Invalid matrix/vector size | YI GOLD suggestionsInspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description. MetaQuotes |
| MT5 · Runtime errors | 5704 ERR_MATRIX_INVALID_TYPE | Invalid matrix/vector type | YI GOLD suggestionsInspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description. MetaQuotes |
| MT5 · Runtime errors | 5705 ERR_MATRIX_FUNC_NOT_ALLOWED | Function not available for this matrix/vector | YI GOLD suggestionsInspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description. MetaQuotes |
| MT5 · Runtime errors | 5706 ERR_MATRIX_CONTAINS_NAN | Matrix/vector contains non-numbers (Nan/Inf) | YI GOLD suggestionsInspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description. MetaQuotes |
| MT5 · Runtime errors | 5707 ERR_MATRIX_OPENBLAS | Error during execution of an OpenBLAS function | YI GOLD suggestionsInspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description. MetaQuotes |
| MT5 · Runtime errors | 5708 ERR_MATRIX_OPENBLAS_PARAMETER | Invalid parameter of an OpenBLAS function | YI GOLD suggestionsCompare each argument and reference mode with the official signature. Validate ranges and preserve relevant failure context. MetaQuotes |
| MT5 · Runtime errors | 5800 ERR_ONNX_INTERNAL | ONNX internal error | YI GOLD suggestionsInspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description. MetaQuotes |
| MT5 · Runtime errors | 5801 ERR_ONNX_NOT_INITIALIZED | ONNX Runtime API initialization error | YI GOLD suggestionsInspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description. MetaQuotes |
| MT5 · Runtime errors | 5802 ERR_ONNX_NOT_SUPPORTED | Property or value not supported by MQL5 | YI GOLD suggestionsInspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description. MetaQuotes |
| MT5 · Runtime errors | 5803 ERR_ONNX_RUN_FAILED | ONNX runtime API run error | YI GOLD suggestionsInspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description. MetaQuotes |
| MT5 · Runtime errors | 5804 ERR_ONNX_INVALID_PARAMETERS_COUNT | Invalid number of parameters passed to OnnxRun | YI GOLD suggestionsCompare each argument and reference mode with the official signature. Validate ranges and preserve relevant failure context. MetaQuotes |
| MT5 · Runtime errors | 5805 ERR_ONNX_INVALID_PARAMETER | Invalid parameter value | YI GOLD suggestionsCompare each argument and reference mode with the official signature. Validate ranges and preserve relevant failure context. MetaQuotes |
| MT5 · Runtime errors | 5806 ERR_ONNX_INVALID_PARAMETER_TYPE | Invalid parameter type | YI GOLD suggestionsCompare each argument and reference mode with the official signature. Validate ranges and preserve relevant failure context. MetaQuotes |
| MT5 · Runtime errors | 5807 ERR_ONNX_INVALID_PARAMETER_SIZE | Invalid parameter size | YI GOLD suggestionsCompare each argument and reference mode with the official signature. Validate ranges and preserve relevant failure context. MetaQuotes |
| MT5 · Runtime errors | 5808 ERR_ONNX_WRONG_DIMENSION | Tensor dimension not set or invalid | YI GOLD suggestionsInspect terminal logs and the failing function return value. Check inputs, array bounds, resources, connectivity and required permissions against the official description. MetaQuotes |
| MT5 · Runtime errors | 65536 ERR_USER_ERROR_FIRST | User defined errors start with this code | YI GOLD suggestionsInspect 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 codes | 10004 TRADE_RETCODE_REQUOTE | Requote | YI GOLD suggestionsRead the latest bid/ask and quote time. Check precision and allowed deviation; stop increasing exposure with stale quotes. MetaQuotes |
| MT5 · Trade return codes | 10006 TRADE_RETCODE_REJECT | Request rejected | YI GOLD suggestionsCheck permissions, sessions, symbol specifications, quotes and request parameters. Reproduce in a demo account. Do not retry rejected requests indefinitely. MetaQuotes |
| MT5 · Trade return codes | 10007 TRADE_RETCODE_CANCEL | Request canceled by trader | YI GOLD suggestionsCheck permissions, sessions, symbol specifications, quotes and request parameters. Reproduce in a demo account. Do not retry rejected requests indefinitely. MetaQuotes |
| MT5 · Trade return codes | 10008 TRADE_RETCODE_PLACED | Order placed | YI GOLD suggestionsCheck permissions, sessions, symbol specifications, quotes and request parameters. Reproduce in a demo account. Do not retry rejected requests indefinitely. MetaQuotes |
| MT5 · Trade return codes | 10009 TRADE_RETCODE_DONE | Request completed | YI GOLD suggestionsCheck permissions, sessions, symbol specifications, quotes and request parameters. Reproduce in a demo account. Do not retry rejected requests indefinitely. MetaQuotes |
| MT5 · Trade return codes | 10010 TRADE_RETCODE_DONE_PARTIAL | Only part of the request was completed | YI GOLD suggestionsCheck permissions, sessions, symbol specifications, quotes and request parameters. Reproduce in a demo account. Do not retry rejected requests indefinitely. MetaQuotes |
| MT5 · Trade return codes | 10011 TRADE_RETCODE_ERROR | Request processing error | YI GOLD suggestionsCheck permissions, sessions, symbol specifications, quotes and request parameters. Reproduce in a demo account. Do not retry rejected requests indefinitely. MetaQuotes |
| MT5 · Trade return codes | 10012 TRADE_RETCODE_TIMEOUT | Request canceled by timeout | YI GOLD suggestionsInspect 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 codes | 10013 TRADE_RETCODE_INVALID | Invalid request | YI GOLD suggestionsCheck permissions, sessions, symbol specifications, quotes and request parameters. Reproduce in a demo account. Do not retry rejected requests indefinitely. MetaQuotes |
| MT5 · Trade return codes | 10014 TRADE_RETCODE_INVALID_VOLUME | Invalid volume in the request | YI GOLD suggestionsRead 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 codes | 10015 TRADE_RETCODE_INVALID_PRICE | Invalid price in the request | YI GOLD suggestionsRead the latest bid/ask and quote time. Check precision and allowed deviation; stop increasing exposure with stale quotes. MetaQuotes |
| MT5 · Trade return codes | 10016 TRADE_RETCODE_INVALID_STOPS | Invalid stops in the request | YI GOLD suggestionsCheck 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.