下载MetaTrader 5

Plese help me

要添加评论,请登录注册
wlhthza
11
wlhthza  

//+------------------------------------------------------------------+
//| test.mq4 |
//| Copyright 2014, MetaQuotes Software Corp. |
//| https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2014, MetaQuotes Software Corp."
#property link "https://www.mql5.com"
#property version "1.00"
#property strict
//+------------------------------------------------------------------+
//| Expert initialization function |
//+------------------------------------------------------------------+
int OnInit()
{
//--- create timer
if(!EventSetTimer(1))
printf(GetLastError() );

//---
return(INIT_SUCCEEDED);
}
//+------------------------------------------------------------------+
//| Expert deinitialization function |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
{
//--- destroy timer
EventKillTimer();

}
//+------------------------------------------------------------------+
//| Expert tick function |
//+------------------------------------------------------------------+

//| Timer function |
//+------------------------------------------------------------------+
void OnTimer()
{
//---
printf("succeed");
}

2014.05.12 14:23:13.633 2013.03.14 20:00 test XAUUSD.,H4: 4051
why error?

wlhthza
11
wlhthza  

no one?

help me

wlhthza
11
wlhthza  
plese
bapi
7
bapi  

相当正常啊, 每秒打印出下面输出, 个人环境 MT4 build 646:

2014.05.18 10:31:33.046 test US30,H1: succeed

要添加评论,请登录注册