下载MetaTrader 5
要添加评论,请登录注册
注册为卖方开始盈利吧!
jian
132
jian 2010.11.12 01:46 

我在图上没有画任何线段,可是这个ea还是照样下单不误,百思不得其解,哪位达人给指点一下。

//+------------------------------------------------------------------+
//|                                                        jiaod.mq4 |
//|                       Copyright ?2010, MetaQuotes Software Corp. |
//|                                        http://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "Copyright ?2010, 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()
  {
//----

              if ( Close[0] > ObjectGetValueByShift("q",9999999))//
              {
     int       ticket=OrderSend(Symbol(),OP_BUY,0.01,Ask,30,0,0,"lot",0,0,Green);

               Print("仓位是  ",ticket);
               }
//----
   return(0);
  }
//+------------------------------------------------------------------+
WANGGUANG
81
WANGGUANG 2010.11.19 08:23  

ObjectGetValueByShift("q",9999999))这个函数你写清楚了

awen08
67
awen08 2011.09.14 21:25  

objectgetvaluebyshift返回了0

keyila
208
keyila 2011.09.22 03:28  
真是个杯具!
matol
50
matol 2011.09.24 14:21  
ea跟画线没关系,只要满足开仓条件
/
要添加评论,请登录注册