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"); } }
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi all
My EA will not open sell stop orders & opens too many orders instead of 1. If you know the problem please help.