What MQL4 error 4200 means
The official MQL4 runtime table names error 4200 ERR_OBJECT_ALREADY_EXISTS and defines it as “object already exists.” ObjectCreate was asked to create a chart object whose name already exists in the target chart.
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.
