int _LastError

_LastError 变量包括最后 错误 代码,在MQL5程序运行中发生,使用 ResetLastError() 值能重设成0。

获得最后错误代码,使用 GetLastError() 函数。