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 errors4102 ERR_TOO_MANY_OPENED_FILESToo many opened files
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 errors4103 ERR_CANNOT_OPEN_FILECannot open 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 errors4104 ERR_INCOMPATIBLE_FILEACCESSIncompatible access to a 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 errors4105 ERR_NO_ORDER_SELECTEDNo order selected
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 errors4106 ERR_UNKNOWN_SYMBOLUnknown symbol
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 errors4107 ERR_INVALID_PRICE_PARAMInvalid price
YI GOLD suggestions

Read the latest bid/ask and quote time. Check precision and allowed deviation; stop increasing exposure with stale quotes.

MetaQuotes
MT4 · Runtime errors4108 ERR_INVALID_TICKETInvalid ticket
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 errors4109 ERR_TRADE_NOT_ALLOWEDTrade is not allowed. Enable checkbox "Allow live trading" in the Expert Advisor properties
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 errors4110 ERR_LONGS_NOT_ALLOWEDLongs are not allowed. Check the Expert Advisor properties
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 errors4111 ERR_SHORTS_NOT_ALLOWEDShorts are not allowed. Check the Expert Advisor properties
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 errors4112 ERR_TRADE_EXPERT_DISABLED_BY_SERVERAutomated trading by Expert Advisors/Scripts disabled by trade server
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
MT4 · Runtime errors4200 ERR_OBJECT_ALREADY_EXISTSObject already exists
YI GOLD suggestions

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

MetaQuotes
MT4 · Runtime errors4201 ERR_UNKNOWN_OBJECT_PROPERTYUnknown object property
YI GOLD suggestions

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

MetaQuotes
MT4 · Runtime errors4202 ERR_OBJECT_DOES_NOT_EXISTObject does not exist
YI GOLD suggestions

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

MetaQuotes
MT4 · Runtime errors4203 ERR_UNKNOWN_OBJECT_TYPEUnknown object type
YI GOLD suggestions

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

MetaQuotes
MT4 · Runtime errors4204 ERR_NO_OBJECT_NAMENo object name
YI GOLD suggestions

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

MetaQuotes
MT4 · Runtime errors4205 ERR_OBJECT_COORDINATES_ERRORObject coordinates error
YI GOLD suggestions

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

MetaQuotes
MT4 · Runtime errors4206 ERR_NO_SPECIFIED_SUBWINDOWNo specified subwindow
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 errors4207 ERR_SOME_OBJECT_ERRORGraphical object error
YI GOLD suggestions

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

MetaQuotes
MT4 · Runtime errors4210 ERR_CHART_PROP_INVALIDUnknown chart 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
MT4 · Runtime errors4211 ERR_CHART_NOT_FOUNDChart 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
MT4 · Runtime errors4212 ERR_CHARTWINDOW_NOT_FOUNDChart subwindow 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
MT4 · Runtime errors4213 ERR_CHARTINDICATOR_NOT_FOUNDChart indicator 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
MT4 · Runtime errors4220 ERR_SYMBOL_SELECTSymbol select 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 errors4250 ERR_NOTIFICATION_ERRORNotification 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 errors4251 ERR_NOTIFICATION_PARAMETERNotification parameter error
YI GOLD suggestions

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

MetaQuotes
MT4 · Runtime errors4252 ERR_NOTIFICATION_SETTINGSNotifications disabled
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 errors4253 ERR_NOTIFICATION_TOO_FREQUENTNotification send too frequent
YI GOLD suggestions

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

MetaQuotes
MT4 · Runtime errors4260 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
MT4 · Runtime errors4261 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
MT4 · Runtime errors4262 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
MT4 · Runtime errors4263 ERR_FTP_CLOSEDFTP connection closed
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
MT4 · Runtime errors4264 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
MT4 · Runtime errors4265 ERR_FTP_FILE_ERRORFile not found in the MQL4\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
MT4 · Runtime errors4266 ERR_FTP_ERRORCommon error during FTP data transmission
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 errors5001 ERR_FILE_TOO_MANY_OPENEDToo many opened files
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 errors5002 ERR_FILE_WRONG_FILENAMEWrong 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
MT4 · Runtime errors5003 ERR_FILE_TOO_LONG_FILENAMEToo long 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
MT4 · Runtime errors5004 ERR_FILE_CANNOT_OPENCannot open 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 errors5005 ERR_FILE_BUFFER_ALLOCATION_ERRORText file buffer allocation error
YI GOLD suggestions

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

MetaQuotes

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