What MQL4 error 1 means
The official MQL4 runtime table names error 1 ERR_NO_RESULT and defines it as “no error returned, but the result is unknown.” OrderModify can return error 1 when the supplied values are unchanged, so compare the current order fields before sending a modification.
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.
