What MQL4 error 5020 means
The official MQL4 runtime table names error 5020 ERR_FILE_NOT_EXIST and defines it as “file does not exist.” The requested file is not present at the relative location visible to the program, tester, or shared-file mode.
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.
