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 · Compilation errors318 Invalid number of parameters for a macro
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors319 Too many parameters for a macro
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors320 Too complex, simplify the macro
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors321 Parameter for EnumToString() can be only an enumeration
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors322 The resource name is too long
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors323 Unsupported image format (only BMP with 24 or 32 bit color depth is supported)
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors324 An array cannot be declared in operator
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors325 The function can be declared only in the global scope
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors326 The declaration is not allowed for the current scope
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors327 Initialization of static variables with the values of local variables is not allowed
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors328 Illegal declaration of an array of objects that do not have a default constructor
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors329 Initialization list allowed only for constructors
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors330 No function definition after initialization list
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors331 Initialization list is empty
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors332 Array initialization in a constructor is not allowed
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors333 Initializing members of a parent class in the initialization list is not allowed
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors334 Expression of the integer type expected
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors335 Memory required for the array exceeds the maximum value
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors336 Memory required for the structure exceeds the maximum value
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors337 Memory required for the variables declared on the global level exceeds the maximum value
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors338 Memory required for local variables exceeds the maximum value
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors339 Constructor not defined
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors340 Invalid name of the icon file
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors341 Could not open the icon file at the specified path
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors342 The icon file is incorrect and is not of the ICO format
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors343 Reinitialization of a member in a class/structure constructor using the initialization list
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors344 Initialization of static members in the constructor initialization list is not allowed
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors345 Initialization of a non-static member of a class/structure on a global level is not allowed
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors346 The name of the class/structure method matches the name of an earlier declared member
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors347 The name of the class/structure member matches the name of an earlier declared method
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors348 Virtual function cannot be declared as static
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors349 The const modifier is not allowed for static functions
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors350 Constructor or destructor cannot be static
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors351 Non-static member/method of a class or a structure cannot be accessed from a static function
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors352 An overload operation (+,-,[],++,-- etc.) is expected after the operator keyword
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors353 Not all operations can be overloaded in MQL5
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors354 Definition does not match declaration
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors355 An invalid number of parameters is specified for the operator
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors356 Event handling function not found
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors357 Method 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

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