Download MetaTrader 5

any functions available that can close all open trades?

To add comments, please log in or register
bobo1974
216
bobo1974  

as above

thanks 

Daniela Bluemel
597
Daniela Bluemel  
no you can do that with a loop
bobo1974
216
bobo1974  
Daniela Bluemel:
no you can do that with a loop
any snippet i can copy?
Daniela Bluemel
597
Daniela Bluemel  
i will not do your work. look for OrderSelect function and do it yourself ;)
bobo1974
216
bobo1974  
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 

Marco vd Heijden
Moderator
4752
Marco vd Heijden  
bobo1974:

as above

thanks 

Yes there are.

But i am not going to do your work.

Alain Verleyen
Moderator
31183
Alain Verleyen  
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
Osama Shaban
1465
Osama Shaban  

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 !. 

To add comments, please log in or register