【第五课】:EA模式结构

楼主  收藏   举报   帖子创建时间:  2019-05-05 04:12 回复:0 关注量:767
打开你的metaeditor
copy & press 下面的ea结构


然后save 一个名字
比如:my1ea001


//+------------------------------------------------------------------+
//| my1ea001.mq4 |
//| Copyright ?2009, metaQuotes Software Corp. |
//| http://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "Copyright ?2009, metaQuotes Software Corp."
#property link "http://www.metaquotes.net"


//+------------------------------------------------------------------+
//| expert initialization function |
//+------------------------------------------------------------------+
int init()
{
//----


//----
return(0);
}
//+------------------------------------------------------------------+
//| expert deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----


//----
return(0);
}
//+------------------------------------------------------------------+
//| expert start function |
//+------------------------------------------------------------------+
int start()
{
//----


//----
return(0);
}
//+------------------------------------------------------------------+
这个是个《空》的ea
所以应该是:0错误 0警告


再save as 另外一个名字
比如:my1ea002
我们就可以开始编写ea了

打赏