any functions available that can close all open trades?

 

as above

thanks 

 
no you can do that with a loop
 
Daniela Bluemel:
no you can do that with a loop
any snippet i can copy?
 
i will not do your work. look for OrderSelect function and do it yourself ;)
 
Daniela Bluemel:
i will not do your work. look for OrderSelect function and do it yourself ;)

thanks

i am not asking for anyone to do my work

i am just asking if there's a function already available to copy, that will save time

anyway thanks for the tips 

 
bobo1974:

as above

thanks 

Yes there are.

But i am not going to do your work.

 
bobo1974:

thanks

i am not asking for anyone to do my work

i am just asking if there's a function already available to copy, that will save time

anyway thanks for the tips 

There are dozens of such code on this site, please do some efforts.

MQL5 Code Base
MQL5 Code Base
  • www.mql5.com
MQL5 Source Code Library for MetaTrader 5
 

Hint ...

Search for any Close all orders script. There are dozens of those either here or on the internet ...

Do little changes according to your needs to make it work as a function !. 

Reason: