下载MetaTrader 5
要添加评论,请登录注册
注册MQL5.community 留下您的评论!
Pigi
73
Pigi 2008.04.16 03:21 

automatism stopping 8H EA functions is Sleep(28800000)?

emit admonition voice functions is PlaySound()?

Rashid Umarov
管理员
6605
Rashid Umarov 2008.04.16 07:35  

What do you want? You can remember current time moment and then will check it:

int delaySeconds=28800;//  8 hours * 3600 seconds
 
....
datetime  starttime=0;
 
if (condition) starttime=TimeCurrent();
.....
 
if (starttime!=0)
  {
  if (TimeCurrent()-starttime>delaySeconds)
     {
     ...
     timestart=0; 
     }
  }
/
要添加评论,请登录注册