MQL5 ReferenceCheckupGetLastError GetLastErrorIsStoppedUninitializeReasonTerminalInfoIntegerTerminalInfoDoubleTerminalInfoStringMQLInfoIntegerMQLInfoStringSymbolPeriodDigitsPoint GetLastError Returns the contents of the system variable _LastError. int GetLastError(); Return Value Returns the value of the last error that occurred during the execution of an mql5 program. Note After the function call, the contents of _LastError are not reset. To reset this variable, you need to call ResetLastError(). See also Trade Server Return Codes Checkup IsStopped