What MQL4 error 4108 means
The official MQL4 runtime table names error 4108 ERR_INVALID_TICKET and defines it as “invalid ticket.” The requested order ticket does not identify a selectable live or historical order in the expected pool.
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.
