raven.chrono:
Hi.
I have this small problem. I have created an EA that closes all open trades when it hits a certain profit or loss and it is working fine but when i opened 200 trades then activate it when it hits 2000 profit, it only closes by batch but not all using this code.
It's been mentioned so many times on this forum already
COUNT DOWN WHEN CLOSING ORDERS
for(int x=OrdersTotal()-1;x>=0;x--)
I expect WHRoedor will be along with a link that will explain why soon.

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.
I have this small problem. I have created an EA that closes all open trades when it hits a certain profit or loss and it is working fine but when i opened 200 trades then activate it when it hits 2000 profit, it only closes by batch but not all using this code.