MQL4 Reference Checkup IsStopped


Checks the forced shutdown of an mql4 program.

bool  IsStopped();

Returned Value

Returns true, if the _StopFlag system variable contains a value other than 0. A nonzero value is written into _StopFlag, if a mql4 program has been commanded to complete its operation. In this case, you must immediately terminate the program, otherwise the program will be completed forcibly from the outside after 3 seconds.