Plese help me 新评论 wlhthza 2014.05.12 04:28 //+------------------------------------------------------------------+ //| test.mq4 | //| Copyright 2014, MetaQuotes Software Corp. | //| / | //+------------------------------------------------------------------+ #property copyright "Copyright 2014, MetaQuotes Software Corp." #property link "/" #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? 初学者的问题 MQL4 MT4 MetaTrader 4 专家顾问 - 杂项问题 Questions from Beginners MQL4 MT4 MetaTrader 4 wlhthza 2014.05.12 04:42 #1 no one? help me wlhthza 2014.05.16 00:51 #2 plese bapi 2014.05.18 00:33 #3 相当正常啊, 每秒打印出下面输出, 个人环境 MT4 build 646: 2014.05.18 10:31:33.046 test US30,H1: succeed 新评论 您错过了交易机会: 免费交易应用程序 8,000+信号可供复制 探索金融市场的经济新闻 注册 登录 拉丁字符(不带空格) 密码将被发送至该邮箱 发生错误 使用 Google 登录 您同意网站政策和使用条款 如果您没有帐号,请注册 可以使用cookies登录MQL5.com网站。 请在您的浏览器中启用必要的设置,否则您将无法登录。 忘记您的登录名/密码? 使用 Google 登录
//+------------------------------------------------------------------+
//| test.mq4 |
//| Copyright 2014, MetaQuotes Software Corp. |
//| / |
//+------------------------------------------------------------------+
#property copyright "Copyright 2014, MetaQuotes Software Corp."
#property link "/"
#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?