下载MetaTrader 5
要添加评论,请登录注册
您既不出售信号也不出售apps?没问题,每个人都可以获利
wlhthza
11
wlhthza 2014.05.12 06:28 

//+------------------------------------------------------------------+
//| 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 2014.05.12 06:42  

no one?

help me

wlhthza
11
wlhthza 2014.05.16 02:51  
plese
bapi
7
bapi 2014.05.18 02:33  

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

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

/
要添加评论,请登录注册