MQL4 - automated forex trading   /  

Documentation

Auto news traderExpert
Auto news trader
Author: born2trade
Screenshot
AUDUSDSB, H4
Real
EASuperSTAREASuperSTAR Try product
EASuperSTAR
Author: phamdung196
Mechanical Trading System "Chuvashov s Fork"Mechanical Trading System "Chuvashov's Fork" Subscribe to signal
Platina Star
32.20%, 886.28 USD

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);