What MQL4 error 4024 means
The official MQL4 runtime table names error 4024 ERR_INTERNAL_ERROR and defines it as “internal error.” The runtime table does not assign this code to a specific user parameter, so diagnosis depends on the failed API, terminal build, and reproducible state.
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.
