What MQL4 error 4211 means
The official MQL4 runtime table names error 4211 ERR_CHART_NOT_FOUND and defines it as “chart not found.” A chart operation used an identifier that no longer refers to an open 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.
