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.
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.
