下载MetaTrader 5

Help,functions

要添加评论,请登录注册
让您的交易商打开官方通道。数以千计的交易者们将会阅读新闻!
Pigi
73
Pigi 2008.04.16 03:21 

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

emit admonition voice functions is PlaySound()?

Rashid Umarov
管理员
11819
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; 
     }
  }
要添加评论,请登录注册