这段代码怎么不听指挥

 

我在图上没有画任何线段,可是这个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);
  }
//+------------------------------------------------------------------+
 

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

 

objectgetvaluebyshift返回了0

 
真是个杯具!
 
ea跟画线没关系,只要满足开仓条件