MT5 · Compilation errors
MT5 351 · Non-static member/method of a class or a structure cannot be accessed from a static function | YI GOLD
Official meaning
Non-static member/method of a class or a structure cannot be accessed from a static function
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.