- delete pending orders
- HELPPPPP!!!!!! trying to close pending orders
- why expert closes trade at price 0.00000 ?
for(int b= OrdersTotal()-1; b >= 0; b--) { if(OrdersTotal() == 0) CloseBuyStack1stLevelLimitOrder1M(); }
If OrdersTotal() is zero the for loop will do nothing. If OrdersTotal() is nonzero the last if statement will always be false. Either way nothing happens.
- Check your return codes and find out why. What are Function return values ? How do I use them ? - MQL4 forum and Common Errors in MQL4 Programs and How to Avoid Them - MQL4 Articles
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