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 | 5050 ERR_INCOMPATIBLE_ARRAYS | Copying incompatible arrays. String array can be copied only to a string array, and a numeric array - in numeric array only | YI GOLD suggestionsCheck length, bounds, dynamic-array declarations and ArraySetAsSeries. Validate returned element counts before access. MetaQuotes |
| MT5 · Runtime errors | 5051 ERR_SMALL_ASSERIES_ARRAY | The receiving array is declared as AS_SERIES, and it is of insufficient size | YI GOLD suggestionsCheck length, bounds, dynamic-array declarations and ArraySetAsSeries. Validate returned element counts before access. MetaQuotes |
| MT5 · Runtime errors | 5052 ERR_SMALL_ARRAY | Too small array, the starting position is outside the array | YI GOLD suggestionsCheck length, bounds, dynamic-array declarations and ArraySetAsSeries. Validate returned element counts before access. MetaQuotes |
| MT5 · Runtime errors | 5053 ERR_ZEROSIZE_ARRAY | An array of zero length | YI GOLD suggestionsCheck length, bounds, dynamic-array declarations and ArraySetAsSeries. Validate returned element counts before access. MetaQuotes |
| MT5 · Runtime errors | 5054 ERR_NUMBER_ARRAYS_ONLY | Must be a numeric array | YI GOLD suggestionsCheck length, bounds, dynamic-array declarations and ArraySetAsSeries. Validate returned element counts before access. MetaQuotes |
| MT5 · Runtime errors | 5055 ERR_ONEDIM_ARRAYS_ONLY | Must be a one-dimensional array | YI GOLD suggestionsCheck length, bounds, dynamic-array declarations and ArraySetAsSeries. Validate returned element counts before access. MetaQuotes |
| MT5 · Runtime errors | 5056 ERR_SERIES_ARRAY | Timeseries cannot be used | YI GOLD suggestionsCheck length, bounds, dynamic-array declarations and ArraySetAsSeries. Validate returned element counts before access. MetaQuotes |
| MT5 · Runtime errors | 5057 ERR_DOUBLE_ARRAY_ONLY | Must be an array of type double | YI GOLD suggestionsCheck length, bounds, dynamic-array declarations and ArraySetAsSeries. Validate returned element counts before access. MetaQuotes |
| MT5 · Runtime errors | 5058 ERR_FLOAT_ARRAY_ONLY | Must be an array of type float | YI GOLD suggestionsCheck length, bounds, dynamic-array declarations and ArraySetAsSeries. Validate returned element counts before access. MetaQuotes |
| MT5 · Runtime errors | 5059 ERR_LONG_ARRAY_ONLY | Must be an array of type long | YI GOLD suggestionsCheck length, bounds, dynamic-array declarations and ArraySetAsSeries. Validate returned element counts before access. MetaQuotes |
| MT5 · Runtime errors | 5060 ERR_INT_ARRAY_ONLY | Must be an array of type int | YI GOLD suggestionsCheck length, bounds, dynamic-array declarations and ArraySetAsSeries. Validate returned element counts before access. MetaQuotes |
| MT5 · Runtime errors | 5061 ERR_SHORT_ARRAY_ONLY | Must be an array of type short | YI GOLD suggestionsCheck length, bounds, dynamic-array declarations and ArraySetAsSeries. Validate returned element counts before access. MetaQuotes |
| MT5 · Runtime errors | 5062 ERR_CHAR_ARRAY_ONLY | Must be an array of type char | YI GOLD suggestionsCheck length, bounds, dynamic-array declarations and ArraySetAsSeries. Validate returned element counts before access. MetaQuotes |
| MT5 · Runtime errors | 5063 ERR_STRING_ARRAY_ONLY | String array only | YI GOLD suggestionsCheck length, bounds, dynamic-array declarations and ArraySetAsSeries. Validate returned element counts before access. MetaQuotes |
| MT5 · Runtime errors | 5100 ERR_OPENCL_NOT_SUPPORTED | OpenCL functions are not supported on this computer | 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 | 5101 ERR_OPENCL_INTERNAL | Internal error occurred when running OpenCL | 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 | 5102 ERR_OPENCL_INVALID_HANDLE | Invalid OpenCL handle | 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 | 5103 ERR_OPENCL_CONTEXT_CREATE | Error creating the OpenCL context | 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 | 5104 ERR_OPENCL_QUEUE_CREATE | Failed to create a run queue in OpenCL | 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 | 5105 ERR_OPENCL_PROGRAM_CREATE | Error occurred when compiling an OpenCL program | 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 | 5106 ERR_OPENCL_TOO_LONG_KERNEL_NAME | Too long kernel name (OpenCL kernel) | 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 | 5107 ERR_OPENCL_KERNEL_CREATE | Error creating an OpenCL kernel | 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 | 5108 ERR_OPENCL_SET_KERNEL_PARAMETER | Error occurred when setting parameters for the OpenCL kernel | YI GOLD suggestionsCompare each argument and reference mode with the official signature. Validate ranges and preserve relevant failure context. MetaQuotes |
| MT5 · Runtime errors | 5109 ERR_OPENCL_EXECUTE | OpenCL program runtime 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 | 5110 ERR_OPENCL_WRONG_BUFFER_SIZE | Invalid size of the OpenCL buffer | 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 | 5111 ERR_OPENCL_WRONG_BUFFER_OFFSET | Invalid offset in the OpenCL buffer | 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 | 5112 ERR_OPENCL_BUFFER_CREATE | Failed to create an OpenCL buffer | 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 | 5113 ERR_OPENCL_TOO_MANY_OBJECTS | Too many OpenCL objects | YI GOLD suggestionsVerify chart ID, object existence and property types. Check creation/update results and avoid name collisions. MetaQuotes |
| MT5 · Runtime errors | 5114 ERR_OPENCL_SELECTDEVICE | OpenCL device selection 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 | 5120 ERR_DATABASE_INTERNAL | Internal database 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 | 5121 ERR_DATABASE_INVALID_HANDLE | Invalid database handle | 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 | 5122 ERR_DATABASE_TOO_MANY_OBJECTS | Exceeded the maximum acceptable number of Database objects | YI GOLD suggestionsVerify chart ID, object existence and property types. Check creation/update results and avoid name collisions. MetaQuotes |
| MT5 · Runtime errors | 5123 ERR_DATABASE_CONNECT | Database connection error | 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 · Runtime errors | 5124 ERR_DATABASE_EXECUTE | Request execution 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 | 5125 ERR_DATABASE_PREPARE | Request generation 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 | 5126 ERR_DATABASE_NO_MORE_DATA | No more data to read | 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 | 5127 ERR_DATABASE_STEP | Failed to move to the next request entry | 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 | 5128 ERR_DATABASE_NOT_READY | Data for reading request results are not ready yet | 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 | 5129 ERR_DATABASE_BIND_PARAMETERS | Failed to auto substitute parameters to an SQL request | YI GOLD suggestionsCompare each argument and reference mode with the official signature. Validate ranges and preserve relevant failure context. MetaQuotes |
| MT5 · Runtime errors | 5200 ERR_WEBREQUEST_INVALID_ADDRESS | Invalid URL | 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 |
Official meanings and YI GOLD suggestions are presented separately. References are verified during version builds; page visits do not fetch external sites.