Close all trades remotely

 
need TO KNOW HOW to introduce a script in my EA which will help me CLOSE ALL TRADES From my EA and for all my Clients that are using my EA at the same time , so basically i need to be able to CLOSE ALL TRADES TAKEN BY my robot 
 

There are many way's to do that.

 
Did you check code base already? Regards Greg
 
Phindile Victoria Qwabe:
I need TO KNOW HOW to introduce a script in my EA which will help me CLOSE ALL TRADES From my EA and for all my Clients that are using my EA at the same time , so basically i need to be able to CLOSE ALL TRADES TAKEN BY my robot

Look for deals by magic number and close them.

the algorithm is as follows:

1. Go through trades in order from zero to the number of trades minus 1

2. If the magic number is equal to yours, close the deal.

Reason: