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 · Compilation errors362 Ambiguous parameter in function template (several parameter types can be applied)
YI GOLD suggestions

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

MetaQuotes
MT4 · Compilation errors363 Unable to determine the parameter type, by which the function template argument should be normalized
YI GOLD suggestions

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

MetaQuotes
MT4 · Compilation errors364 Incorrect number of parameters in the function template
YI GOLD suggestions

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

MetaQuotes
MT4 · Compilation errors365 Function template cannot be virtual
YI GOLD suggestions

Locate the first reported line in MetaEditor. Check syntax, types, function signatures, includes and file permissions, then recompile.

MetaQuotes
MT4 · Compilation errors366 Function templates cannot be exported
YI GOLD suggestions

Locate the first reported line in MetaEditor. Check syntax, types, function signatures, includes and file permissions, then recompile.

MetaQuotes
MT4 · Compilation errors367 Function templates cannot be imported
YI GOLD suggestions

Locate the first reported line in MetaEditor. Check syntax, types, function signatures, includes and file permissions, then recompile.

MetaQuotes
MT4 · Compilation errors368 Structures containing the objects are not allowed
YI GOLD suggestions

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

MetaQuotes
MT4 · Compilation errors369 String arrays and structures containing the objects are not allowed
YI GOLD suggestions

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

MetaQuotes
MT4 · Compilation errors370 A static class/structure member must be explicitly initialized
YI GOLD suggestions

Locate the first reported line in MetaEditor. Check syntax, types, function signatures, includes and file permissions, then recompile.

MetaQuotes
MT4 · Compilation errors371 Compiler limitation: the string cannot contain more than 65 535 characters
YI GOLD suggestions

Locate the first reported line in MetaEditor. Check syntax, types, function signatures, includes and file permissions, then recompile.

MetaQuotes
MT4 · Compilation errors372 Inconsistent #ifdef/#endif
YI GOLD suggestions

Locate the first reported line in MetaEditor. Check syntax, types, function signatures, includes and file permissions, then recompile.

MetaQuotes
MT4 · Compilation errors373 Object of class cannot be returned, copy constructor not found
YI GOLD suggestions

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

MetaQuotes
MT4 · Compilation errors374 Non-static members and methods cannot be used
YI GOLD suggestions

Locate the first reported line in MetaEditor. Check syntax, types, function signatures, includes and file permissions, then recompile.

MetaQuotes
MT4 · Compilation errors375 OnTesterInit() impossible to use without OnTesterDeinit()
YI GOLD suggestions

Locate the first reported line in MetaEditor. Check syntax, types, function signatures, includes and file permissions, then recompile.

MetaQuotes
MT4 · Compilation errors376 Redefinition of formal parameter '%s'
YI GOLD suggestions

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

MetaQuotes
MT4 · Compilation errors377 Macro __FUNCSIG__ and __FUNCTION__ cannot appear outside of a function body
YI GOLD suggestions

Locate the first reported line in MetaEditor. Check syntax, types, function signatures, includes and file permissions, then recompile.

MetaQuotes
MT4 · Compilation errors378 Invalid returned type. For example, this error will be produced for functions imported from DLL that return structure or pointer.
YI GOLD suggestions

Locate the first reported line in MetaEditor. Check syntax, types, function signatures, includes and file permissions, then recompile.

MetaQuotes
MT4 · Compilation errors379 Template usage error
YI GOLD suggestions

Locate the first reported line in MetaEditor. Check syntax, types, function signatures, includes and file permissions, then recompile.

MetaQuotes
MT4 · Compilation errors380 Not used
YI GOLD suggestions

Locate the first reported line in MetaEditor. Check syntax, types, function signatures, includes and file permissions, then recompile.

MetaQuotes
MT4 · Compilation errors381 Illegal syntax when declaring pure virtual function, only "=NULL" or "=0" are allowed
YI GOLD suggestions

Locate the first reported line in MetaEditor. Check syntax, types, function signatures, includes and file permissions, then recompile.

MetaQuotes
MT4 · Compilation errors382 Only virtual functions can be declared with the pure-specifier ("=NULL" or "=0")
YI GOLD suggestions

Locate the first reported line in MetaEditor. Check syntax, types, function signatures, includes and file permissions, then recompile.

MetaQuotes
MT4 · Compilation errors383 Abstract class cannot be instantiated
YI GOLD suggestions

Locate the first reported line in MetaEditor. Check syntax, types, function signatures, includes and file permissions, then recompile.

MetaQuotes
MT4 · Compilation errors384 A pointer to a user-defined type should be applied as a target type for dynamic casting using the dynamic_cast operator
YI GOLD suggestions

Locate the first reported line in MetaEditor. Check syntax, types, function signatures, includes and file permissions, then recompile.

MetaQuotes
MT4 · Compilation errors385 "Pointer to function" type is expected
YI GOLD suggestions

Locate the first reported line in MetaEditor. Check syntax, types, function signatures, includes and file permissions, then recompile.

MetaQuotes
MT4 · Compilation errors386 Pointers to methods are not supported
YI GOLD suggestions

Locate the first reported line in MetaEditor. Check syntax, types, function signatures, includes and file permissions, then recompile.

MetaQuotes
MT4 · Compilation errors387 Error — cannot define the type of a pointer to function
YI GOLD suggestions

Locate the first reported line in MetaEditor. Check syntax, types, function signatures, includes and file permissions, then recompile.

MetaQuotes
MT4 · Compilation errors388 Type cast is not available due to private inheritance
YI GOLD suggestions

Locate the first reported line in MetaEditor. Check syntax, types, function signatures, includes and file permissions, then recompile.

MetaQuotes
MT4 · Compilation errors389 A variable with const modifier should be initialized during declaration
YI GOLD suggestions

Locate the first reported line in MetaEditor. Check syntax, types, function signatures, includes and file permissions, then recompile.

MetaQuotes
MT4 · Runtime errors0 ERR_NO_ERRORNo error returned
YI GOLD suggestions

Do not treat this as a failure. Still check the function return value and operation state.

MetaQuotes
MT4 · Runtime errors1 ERR_NO_RESULTNo error returned, but the result is unknown
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 errors2 ERR_COMMON_ERRORCommon 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 errors3 ERR_INVALID_TRADE_PARAMETERSInvalid trade parameters
YI GOLD suggestions

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

MetaQuotes
MT4 · Runtime errors4 ERR_SERVER_BUSYTrade server is busy
YI GOLD suggestions

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

MetaQuotes
MT4 · Runtime errors5 ERR_OLD_VERSIONOld version of the client terminal
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 errors6 ERR_NO_CONNECTIONNo connection with trade server
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 errors7 ERR_NOT_ENOUGH_RIGHTSNot enough rights
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 errors8 ERR_TOO_FREQUENT_REQUESTSToo frequent requests
YI GOLD suggestions

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

MetaQuotes
MT4 · Runtime errors9 ERR_MALFUNCTIONAL_TRADEMalfunctional trade operation
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 errors64 ERR_ACCOUNT_DISABLEDAccount 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 errors65 ERR_INVALID_ACCOUNTInvalid account
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.