EA编程第一步

楼主  收藏   举报   帖子创建时间:  2019-05-05 05:13 回复:0 关注量:275
HelloWorld

//+------------------------------------------------------------------+
//|                                                 Hello World!.mq4 |
//|                        Copyright 2016, metaQuotes Software Corp. |
//|                                             https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2016, metaQuotes Software Corp."
#property link      "QQ:3069404905"
#property version   "1.00"
#property strict
//+------------------------------------------------------------------+
//| Expert initialization function                                   |
//+------------------------------------------------------------------+
int onInit()
  {
//---

//---
   return(INIT_SUCCEEDED);
  }
//+------------------------------------------------------------------+
//| Expert deinitialization function                                 |
//+------------------------------------------------------------------+
void onDeinit(const int reason)
  {
//---

  }
//+------------------------------------------------------------------+
//| Expert tick function                                             |
//+------------------------------------------------------------------+
void onTick()
  {
//---
      HelloWorld();
  }
//+------------------------------------------------------------------+

void HelloWorld()
{
   string HelloWorld="Hello World!";
   int MsgBoxInfo=MessageBox("Dear:"+HelloWorld);
   Print(MsgBoxInfo);
}



KCU[T`JT84POR9}AMQ7GD2X.png
打赏