- My EA opens multiple orders in a pair... Any Solution to this.
- EA opening only BuY orders/ SELL NOT
- ASCTrend system
int ticket,total; if(// condition //) total=OrdersTotal(); if(total<1) { ticket=OrderSend(Symbol(),OP_BUY,Lots,Ask,3,Ask-TakeProfit*Point,Ask+TakeProfit*Point,"trial",16384,0,Green); if(ticket>0) { if(OrderSelect(ticket,SELECT_BY_TICKET,MODE_TRADES)) Print("BUY order opened : ",OrderOpenPrice()); } else Print("Error opening BUY order : ",GetLastError()); return(0); }
only if(// condition //)
you make total=OrdersTotal();
if you want it also work on the other lines then you had to use another { } and place the code it had to work on inside
deVries:
only if(// condition //)
you make total=OrdersTotal();
if you want it also work on the other lines then you had to use another { } and place the code it had to work on inside
i feel so stupid...forgot to put it in a loop >.<
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