MQL4 - automated forex trading   /  

Documentation

MQL4 Reference  Common functions  Sleep

 
Use the opportunities of
MQL5 in MetaTrader 5
Study the new MQL5 language
Study the new MQL5 language.
Reference is already available
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);