//只验证开不开单(->if((up>0)||(upp>0))),因为不了解你的iCustomer,还有去掉N个警告的地方,需要Check1,试试:
double up=iCustom(Symbol(),0,"509-3",0,0)//如果不行改iCustom(Symbol(),0,"509-3",1或2或3,0)
double upp=iCustom(Symbol(),0,"509-3",0,1)//如果不行改iCustom(Symbol(),0,"509-3",1或2或3,0)
if((up>0)||(upp>0))//buy
int Check1=OrderSend(Symbol(),OP_BUY,0.1,Ask,30,Ask-80*Point,Ask+80*Point,"",123,0,White);
//注意指标箭头与iCustomer中倒数第二个参数的对应关系,解答者不清楚,只有你清楚,这个错了什么都是浮云
|