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 errors4513 ERR_TERMINAL_WRONG_PROPERTYWrong identifier of the terminal property
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 errors4514 ERR_FTP_SEND_FAILEDFile sending via ftp failed
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 errors4515 ERR_NOTIFICATION_SEND_FAILEDFailed to send a notification
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 errors4516 ERR_NOTIFICATION_WRONG_PARAMETERInvalid parameter for sending a notification – an empty string or NULL has been passed to the SendNotification() function
YI GOLD suggestions

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

MetaQuotes
MT5 · Runtime errors4517 ERR_NOTIFICATION_WRONG_SETTINGSWrong settings of notifications in the terminal (ID is not specified or permission is not set)
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 errors4518 ERR_NOTIFICATION_TOO_FREQUENTToo frequent sending of notifications
YI GOLD suggestions

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

MetaQuotes
MT5 · Runtime errors4519 ERR_FTP_NOSERVERFTP server is not specified
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 errors4520 ERR_FTP_NOLOGINFTP login is not specified
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 errors4521 ERR_FTP_FILE_ERRORFile not found in the MQL5\Files directory to send on FTP server
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 errors4522 ERR_FTP_CONNECT_FAILEDFTP connection failed
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 errors4523 ERR_FTP_CHANGEDIRFTP path not found on server
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 errors4601 ERR_BUFFERS_NO_MEMORYNot enough memory for the distribution of indicator buffers
YI GOLD suggestions

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

MetaQuotes
MT5 · Runtime errors4602 ERR_BUFFERS_WRONG_INDEXWrong indicator buffer index
YI GOLD suggestions

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

MetaQuotes
MT5 · Runtime errors4603 ERR_CUSTOM_WRONG_PROPERTYWrong ID of the custom indicator property
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
MT5 · Runtime errors4701 ERR_ACCOUNT_WRONG_PROPERTYWrong account property ID
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 errors4751 ERR_TRADE_WRONG_PROPERTYWrong trade property ID
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 errors4752 ERR_TRADE_DISABLEDTrading by Expert Advisors prohibited
YI GOLD suggestions

Check server time, gold trading sessions, holidays and terminal/EA permissions. Wait for availability instead of repeatedly retrying closed-market requests.

MetaQuotes
MT5 · Runtime errors4753 ERR_TRADE_POSITION_NOT_FOUNDPosition 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
MT5 · Runtime errors4754 ERR_TRADE_ORDER_NOT_FOUNDOrder 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
MT5 · Runtime errors4755 ERR_TRADE_DEAL_NOT_FOUNDDeal 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
MT5 · Runtime errors4756 ERR_TRADE_SEND_FAILEDTrade request sending failed
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 errors4758 ERR_TRADE_CALC_FAILEDFailed to calculate profit or margin
YI GOLD suggestions

Check actual account denomination, free margin, volume and leverage. Calculate margin in the terminal and assess reduced exposure or genuine funding. Do not repeatedly submit the same request.

MetaQuotes
MT5 · Runtime errors4801 ERR_INDICATOR_UNKNOWN_SYMBOLUnknown symbol
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
MT5 · Runtime errors4802 ERR_INDICATOR_CANNOT_CREATEIndicator cannot be created
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
MT5 · Runtime errors4803 ERR_INDICATOR_NO_MEMORYNot enough memory to add the indicator
YI GOLD suggestions

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

MetaQuotes
MT5 · Runtime errors4804 ERR_INDICATOR_CANNOT_APPLYThe indicator cannot be applied to another 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
MT5 · Runtime errors4805 ERR_INDICATOR_CANNOT_ADDError applying an indicator to 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
MT5 · Runtime errors4806 ERR_INDICATOR_DATA_NOT_FOUNDRequested data not found
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
MT5 · Runtime errors4807 ERR_INDICATOR_WRONG_HANDLEWrong indicator handle
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
MT5 · Runtime errors4808 ERR_INDICATOR_WRONG_PARAMETERSWrong number of parameters when creating an 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
MT5 · Runtime errors4809 ERR_INDICATOR_PARAMETERS_MISSINGNo parameters when creating an 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
MT5 · Runtime errors4810 ERR_INDICATOR_CUSTOM_NAMEThe first parameter in the array must be the name of the custom indicator
YI GOLD suggestions

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

MetaQuotes
MT5 · Runtime errors4811 ERR_INDICATOR_PARAMETER_TYPEInvalid parameter type in the array when creating an indicator
YI GOLD suggestions

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

MetaQuotes
MT5 · Runtime errors4812 ERR_INDICATOR_WRONG_INDEXWrong index of the requested indicator buffer
YI GOLD suggestions

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

MetaQuotes
MT5 · Runtime errors4901 ERR_BOOKS_CANNOT_ADDDepth Of Market can not be added
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 errors4902 ERR_BOOKS_CANNOT_DELETEDepth Of Market can not be removed
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 errors4903 ERR_BOOKS_CANNOT_GETThe data from Depth Of Market can not be obtained
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 errors4904 ERR_BOOKS_CANNOT_SUBSCRIBEError in subscribing to receive new data from Depth Of Market
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 errors5001 ERR_TOO_MANY_FILESMore than 64 files cannot be opened at the same time
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 errors5002 ERR_WRONG_FILENAMEInvalid 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.