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 errors272 Const specifier is invalid for functions that are not members of a class or structure
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors274 Not allowed to change class members in constant 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 errors276 Inappropriate initialization sequence
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors277 Missed default value for the parameter (specific declaration of default parameters)
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors278 Overriding the default parameter (different values in declaration and implementation)
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors279 Not allowed to call non-constant method for a constant object
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors280 An object is necessary for accessing members (a dot for a non class/structure is specified)
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors281 The name of an already declared structure cannot be used in 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 errors284 Unauthorized conversion (at closed inheritance)
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors285 Structures and arrays cannot be used as input variables
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors286 Const specifier is not valid for constructor/destructor
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors287 Incorrect string expression for a datetime
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors288 Unknown property (#property)
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors289 Incorrect value of a property
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors290 Invalid index for a property in #property
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors291 Call parameter omitted - <func (x,)>
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors293 Object must be passed by reference
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors294 Array must be passed by reference
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors295 Function was declared as exportable
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors296 Function was not declared as exportable
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors297 It is prohibited to export imported 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 errors298 Imported function cannot have this parameter (prohibited to pass a pointer, class or structure containing a dynamic array, pointer, class, etc.)
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors299 Must be a class
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors300 #import was not closed
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors302 Type mismatch
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors303 Extern variable is already initialized
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors304 No exported function or entry point 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 errors305 Explicit constructor call 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 errors306 Method was declared as constant
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors307 Method was not declared as constant
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors308 Incorrect size of the resource 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 errors309 Incorrect resource name
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 errors310 Resource file opening error
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 errors311 Resource file reading error
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 errors312 Unknown resource type
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 errors313 Incorrect path to the resource 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 errors314 The specified resource name is already used
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 errors315 Argument expected for the function-like 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 errors316 Unexpected symbol in macro definition
YI GOLD suggestions

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

MetaQuotes
MT5 · Compilation errors317 Error in formal parameters of the macro
YI GOLD suggestions

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

MetaQuotes

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