MT5 · Compilation errors
MT5 306 · Method was declared as constant | YI GOLD
Official meaning
Method was declared as constant
Possible causes · YI GOLD suggestions
Determine the cause from the official meaning, the triggering function and terminal logs.
Troubleshooting · YI GOLD suggestions
Locate the first reported line in MetaEditor. Check syntax, types, function signatures, includes and file permissions, then recompile.