The compiler will tell you what is wrong. Just look at the error messages.
int start() { int ABUY; int ASELL; int pos; if(ABUY== 2) { if(ASELL>0) { int i=OrdersTotal()-1; for(pos=i;pos>=0;pos--) { if((OrderSelect(pos, SELECT_BY_POS)==true)&&(OrderMagicNumber()==2)&&(OrderSymbol()==Symbol())) { if (!OrderDelete(OrderTicket())) { //Alert("OrderDelete(",OrderTicket(),") failed: ", GetLastError()); } } } } } return(0); }Enjoy .

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 this is a sample of code that I want to use.
Do you know why this isn't compiling?