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
MT4 · Runtime errors4020 ERR_EXTERNAL_CALLS_NOT_ALLOWEDExpert function calls are not allowed
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
MT4 · Runtime errors4021 ERR_NO_MEMORY_FOR_RETURNED_STRNot enough memory for temp string returned from function
YI GOLD suggestions

Reduce recursion and large local arrays, review allocation/release, batch history processing and check memory-operation results.

MetaQuotes
MT4 · Runtime errors4022 ERR_SYSTEM_BUSYSystem is busy (never generated error)
YI GOLD suggestions

Serialize account requests, verify previous outcomes, reduce frequency and use bounded backoff.

MetaQuotes
MT4 · Runtime errors4023 ERR_DLLFUNC_CRITICALERRORDLL-function call critical 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
MT4 · Runtime errors4024 ERR_INTERNAL_ERRORInternal 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
MT4 · Runtime errors4025 ERR_OUT_OF_MEMORYOut of memory
YI GOLD suggestions

Reduce recursion and large local arrays, review allocation/release, batch history processing and check memory-operation results.

MetaQuotes
MT4 · Runtime errors4026 ERR_INVALID_POINTERInvalid pointer
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
MT4 · Runtime errors4027 ERR_FORMAT_TOO_MANY_FORMATTERSToo many formatters in the format 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
MT4 · Runtime errors4028 ERR_FORMAT_TOO_MANY_PARAMETERSParameters count exceeds formatters count
YI GOLD suggestions

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

MetaQuotes
MT4 · Runtime errors4029 ERR_ARRAY_INVALIDInvalid array
YI GOLD suggestions

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

MetaQuotes
MT4 · Runtime errors4030 ERR_CHART_NOREPLYNo reply from chart
YI GOLD suggestions

Verify symbol, timeframe, indicator handle, BarsCalculated and copied element counts. Wait for data availability rather than filling missing prices with zeros.

MetaQuotes
MT4 · Runtime errors4050 ERR_INVALID_FUNCTION_PARAMSCNTInvalid function parameters count
YI GOLD suggestions

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

MetaQuotes
MT4 · Runtime errors4051 ERR_INVALID_FUNCTION_PARAMVALUEInvalid function parameter value
YI GOLD suggestions

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

MetaQuotes
MT4 · Runtime errors4052 ERR_STRING_FUNCTION_INTERNALString function 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
MT4 · Runtime errors4053 ERR_SOME_ARRAY_ERRORSome array error
YI GOLD suggestions

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

MetaQuotes
MT4 · Runtime errors4054 ERR_INCORRECT_SERIESARRAY_USINGIncorrect series array using
YI GOLD suggestions

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

MetaQuotes
MT4 · Runtime errors4055 ERR_CUSTOM_INDICATOR_ERRORCustom indicator error
YI GOLD suggestions

Verify symbol, timeframe, indicator handle, BarsCalculated and copied element counts. Wait for data availability rather than filling missing prices with zeros.

MetaQuotes
MT4 · Runtime errors4056 ERR_INCOMPATIBLE_ARRAYSArrays are incompatible
YI GOLD suggestions

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

MetaQuotes
MT4 · Runtime errors4057 ERR_GLOBAL_VARIABLES_PROCESSINGGlobal variables processing 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
MT4 · Runtime errors4058 ERR_GLOBAL_VARIABLE_NOT_FOUNDGlobal variable not found
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
MT4 · Runtime errors4059 ERR_FUNC_NOT_ALLOWED_IN_TESTINGFunction is not allowed in testing mode
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
MT4 · Runtime errors4060 ERR_FUNCTION_NOT_CONFIRMEDFunction is not allowed for call
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
MT4 · Runtime errors4061 ERR_SEND_MAIL_ERRORSend mail 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
MT4 · Runtime errors4062 ERR_STRING_PARAMETER_EXPECTEDString parameter expected
YI GOLD suggestions

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

MetaQuotes
MT4 · Runtime errors4063 ERR_INTEGER_PARAMETER_EXPECTEDInteger parameter expected
YI GOLD suggestions

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

MetaQuotes
MT4 · Runtime errors4064 ERR_DOUBLE_PARAMETER_EXPECTEDDouble parameter expected
YI GOLD suggestions

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

MetaQuotes
MT4 · Runtime errors4065 ERR_ARRAY_AS_PARAMETER_EXPECTEDArray as parameter expected
YI GOLD suggestions

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

MetaQuotes
MT4 · Runtime errors4066 ERR_HISTORY_WILL_UPDATEDRequested history data is in updating state
YI GOLD suggestions

Verify symbol, timeframe, indicator handle, BarsCalculated and copied element counts. Wait for data availability rather than filling missing prices with zeros.

MetaQuotes
MT4 · Runtime errors4067 ERR_TRADE_ERRORInternal trade 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
MT4 · Runtime errors4068 ERR_RESOURCE_NOT_FOUNDResource not found
YI GOLD suggestions

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

MetaQuotes
MT4 · Runtime errors4069 ERR_RESOURCE_NOT_SUPPORTEDResource not supported
YI GOLD suggestions

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

MetaQuotes
MT4 · Runtime errors4070 ERR_RESOURCE_DUPLICATEDDuplicate resource
YI GOLD suggestions

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

MetaQuotes
MT4 · Runtime errors4071 ERR_INDICATOR_CANNOT_INITCustom indicator cannot initialize
YI GOLD suggestions

Verify symbol, timeframe, indicator handle, BarsCalculated and copied element counts. Wait for data availability rather than filling missing prices with zeros.

MetaQuotes
MT4 · Runtime errors4072 ERR_INDICATOR_CANNOT_LOADCannot load custom indicator
YI GOLD suggestions

Verify symbol, timeframe, indicator handle, BarsCalculated and copied element counts. Wait for data availability rather than filling missing prices with zeros.

MetaQuotes
MT4 · Runtime errors4073 ERR_NO_HISTORY_DATANo history data
YI GOLD suggestions

Verify symbol, timeframe, indicator handle, BarsCalculated and copied element counts. Wait for data availability rather than filling missing prices with zeros.

MetaQuotes
MT4 · Runtime errors4074 ERR_NO_MEMORY_FOR_HISTORYNo memory for history data
YI GOLD suggestions

Reduce recursion and large local arrays, review allocation/release, batch history processing and check memory-operation results.

MetaQuotes
MT4 · Runtime errors4075 ERR_NO_MEMORY_FOR_INDICATORNot enough memory for indicator calculation
YI GOLD suggestions

Reduce recursion and large local arrays, review allocation/release, batch history processing and check memory-operation results.

MetaQuotes
MT4 · Runtime errors4099 ERR_END_OF_FILEEnd of file
YI GOLD suggestions

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

MetaQuotes
MT4 · Runtime errors4100 ERR_SOME_FILE_ERRORSome file error
YI GOLD suggestions

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

MetaQuotes
MT4 · Runtime errors4101 ERR_WRONG_FILE_NAMEWrong file name
YI GOLD suggestions

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

MetaQuotes

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