What MQL4 error 0 means
The official MQL4 runtime table names error 0 ERR_NO_ERROR and defines it as “no error returned.” A zero error state does not replace the documented return value of the API you called.
The error number is evidence about one failed call, not a diagnosis of the whole EA. Read the API sentinel first, then call GetLastError immediately because that function returns the current _LastError value and resets it.
