View Single Post
  #2 (permalink)  
Old 09-19-2006, 05:03 PM
codersguru's Avatar
codersguru codersguru is offline
Senior Member
 
Join Date: Oct 2005
Posts: 987
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Smile

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!
__________________
Hope it helps !
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm
Reply With Quote