MQL4 Reference
Common functions
Sleep
| void Sleep( |
int milliseconds) |
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.
Parameters:
| milliseconds |
- |
Sleeping interval in milliseconds. |
Sample:
//---- wait for 10 seconds
Sleep(10000);
|
|
|