Quote:
|
Originally Posted by kokas
I need help, this is a very basic question, but...  I'm not a coder, but I'm trying to code an EA for the first time,
So, I need to know how to close all trades based on MagicNumber variable...
I want to put an order but before close all open trades of that EA. Is this possible?
Thanks! 
|
An easy task my friend kokas:
1- Go to:
http://www.metatrader.info/node/158
2- Download the Close All purposes script.
3- Set the
option parameter to close by the magic number. (Note: You have to set the magic_number variable)
4- Show me your smile!