EA will not open sell order (sell stop) & opens too many orders
Figured out why sell wont open.
if(Close[1]>Lowest&&Lowest2<Close[1])
To
if(Close[1]>Lowest&&Close[1]<Lowest2)
Still trying to figure out why it opens too many trades.
William Roeder #:
No, what you said was "why it opens too many trades."
When a pending order opens, it is no longer a pending order. So your code opens another pending order.
Is it possible not to open another besides using the following:
if(MaxTrades!=1) { if(Close[1]>Lowest&&Lowest2<Close[1]) { MaxTrades=1; trade.BuyStop(0.01,Ask+0.5*Pips,NULL,StopLossBuy,TakeProfitBuy,ORDER_TIME_SPECIFIED,Expire,"JackBuda"); } }
Hi all
My EA will not open sell stop orders & opens too many orders instead of 1. If you know the problem please help.