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 errors5050 ERR_INCOMPATIBLE_ARRAYSCopying incompatible arrays. String array can be copied only to a string array, and a numeric array - in numeric array only
YI GOLD suggestions

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

MetaQuotes
MT5 · Runtime errors5051 ERR_SMALL_ASSERIES_ARRAYThe receiving array is declared as AS_SERIES, and it is of insufficient size
YI GOLD suggestions

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

MetaQuotes
MT5 · Runtime errors5052 ERR_SMALL_ARRAYToo small array, the starting position is outside the array
YI GOLD suggestions

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

MetaQuotes
MT5 · Runtime errors5053 ERR_ZEROSIZE_ARRAYAn array of zero length
YI GOLD suggestions

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

MetaQuotes
MT5 · Runtime errors5054 ERR_NUMBER_ARRAYS_ONLYMust be a numeric array
YI GOLD suggestions

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

MetaQuotes
MT5 · Runtime errors5055 ERR_ONEDIM_ARRAYS_ONLYMust be a one-dimensional array
YI GOLD suggestions

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

MetaQuotes
MT5 · Runtime errors5056 ERR_SERIES_ARRAYTimeseries cannot be used
YI GOLD suggestions

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

MetaQuotes
MT5 · Runtime errors5057 ERR_DOUBLE_ARRAY_ONLYMust be an array of type double
YI GOLD suggestions

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

MetaQuotes
MT5 · Runtime errors5058 ERR_FLOAT_ARRAY_ONLYMust be an array of type float
YI GOLD suggestions

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

MetaQuotes
MT5 · Runtime errors5059 ERR_LONG_ARRAY_ONLYMust be an array of type long
YI GOLD suggestions

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

MetaQuotes
MT5 · Runtime errors5060 ERR_INT_ARRAY_ONLYMust be an array of type int
YI GOLD suggestions

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

MetaQuotes
MT5 · Runtime errors5061 ERR_SHORT_ARRAY_ONLYMust be an array of type short
YI GOLD suggestions

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

MetaQuotes
MT5 · Runtime errors5062 ERR_CHAR_ARRAY_ONLYMust be an array of type char
YI GOLD suggestions

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

MetaQuotes
MT5 · Runtime errors5063 ERR_STRING_ARRAY_ONLYString array only
YI GOLD suggestions

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

MetaQuotes
MT5 · Runtime errors5100 ERR_OPENCL_NOT_SUPPORTEDOpenCL functions are not supported on this computer
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 errors5101 ERR_OPENCL_INTERNALInternal error occurred when running OpenCL
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 errors5102 ERR_OPENCL_INVALID_HANDLEInvalid OpenCL handle
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 errors5103 ERR_OPENCL_CONTEXT_CREATEError creating the OpenCL context
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 errors5104 ERR_OPENCL_QUEUE_CREATEFailed to create a run queue in OpenCL
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 errors5105 ERR_OPENCL_PROGRAM_CREATEError occurred when compiling an OpenCL program
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 errors5106 ERR_OPENCL_TOO_LONG_KERNEL_NAMEToo long kernel name (OpenCL kernel)
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 errors5107 ERR_OPENCL_KERNEL_CREATEError creating an OpenCL kernel
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 errors5108 ERR_OPENCL_SET_KERNEL_PARAMETERError occurred when setting parameters for the OpenCL kernel
YI GOLD suggestions

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

MetaQuotes
MT5 · Runtime errors5109 ERR_OPENCL_EXECUTEOpenCL program runtime 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 errors5110 ERR_OPENCL_WRONG_BUFFER_SIZEInvalid size of the OpenCL buffer
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 errors5111 ERR_OPENCL_WRONG_BUFFER_OFFSETInvalid offset in the OpenCL buffer
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 errors5112 ERR_OPENCL_BUFFER_CREATEFailed to create an OpenCL buffer
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 errors5113 ERR_OPENCL_TOO_MANY_OBJECTSToo many OpenCL objects
YI GOLD suggestions

Verify chart ID, object existence and property types. Check creation/update results and avoid name collisions.

MetaQuotes
MT5 · Runtime errors5114 ERR_OPENCL_SELECTDEVICEOpenCL device selection 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 errors5120 ERR_DATABASE_INTERNALInternal database 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 errors5121 ERR_DATABASE_INVALID_HANDLEInvalid database handle
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 errors5122 ERR_DATABASE_TOO_MANY_OBJECTSExceeded the maximum acceptable number of Database objects
YI GOLD suggestions

Verify chart ID, object existence and property types. Check creation/update results and avoid name collisions.

MetaQuotes
MT5 · Runtime errors5123 ERR_DATABASE_CONNECTDatabase connection error
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 · Runtime errors5124 ERR_DATABASE_EXECUTERequest execution 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 errors5125 ERR_DATABASE_PREPARERequest generation 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 errors5126 ERR_DATABASE_NO_MORE_DATANo more data to read
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 errors5127 ERR_DATABASE_STEPFailed to move to the next request entry
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 errors5128 ERR_DATABASE_NOT_READYData for reading request results are not ready yet
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 errors5129 ERR_DATABASE_BIND_PARAMETERSFailed to auto substitute parameters to an SQL request
YI GOLD suggestions

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

MetaQuotes
MT5 · Runtime errors5200 ERR_WEBREQUEST_INVALID_ADDRESSInvalid URL
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

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