What MQL4 error 132 means
The official MQL4 runtime table names error 132 ERR_MARKET_CLOSED and defines it as “market is closed.” The server will not accept the trade while the symbol is outside a tradable session.
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.
