I build an Expert ,but it open a lot of orders at the same time. How can I make it to open just one order.
int ticket=OrderSend(Symbol(),OP_BUY,1,Ask,3,0,0,"op buy/1",123,0,clrBlue);
Comment("profit order select",a);
Haven't you posted this code already?
Write your code to check for an open order and only open a new order if there are none.
To add comments, please log in or register