MT5 · Compilation errors
MT5 325 · The function can be declared only in the global scope | YI GOLD
Official meaning
The function can be declared only in the global scope
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.