How to run close all funtcion by Command line?

 

I need to Close Mt4 and close all open order.

I have close all function script,but i must run my script with every running MT4.

I need run once time,but my script run with every running MT4.


My Solution is run function by commandline,but I don't know how.

Who can help me?


Thank you.

 

hi

if your orders are in same account so you can easily do it with your script , and if your orders are in different account that seems a bit hard and can not be done easily.

...

Reason: