What MQL4 error 4029 means
The official MQL4 runtime table names error 4029 ERR_ARRAY_INVALID and defines it as “invalid array.” An array is invalid for the called operation. Identify that API and its supported array type; an out-of-range element access is a distinct critical error (4002), not automatically 4029.
An error-state value is supporting context, not proof that a call failed or a diagnosis of the whole EA. For noncritical API failures, read the return value and then GetLastError, which resets _LastError. Critical errors such as zero division terminate execution, so code after the failing expression cannot serve as a recovery handler.
