MQL4 Reference Common functions Sleep
The Sleep() function suspends execution of the current expert within the specified interval.
The Sleep() function cannot be called from custom indicators since they calculate in the interface
thread and may not decelerate it.
The checking of the expert stop flag status every 0.1 second has been built into the function.
||Sleeping interval in milliseconds.|
//---- wait for 10 seconds