外汇EA编程入门【第五课】:EA模式结构
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了
本文地址:http://www.ea666.cn/fxschool/autotrading/mql4/52246.html