Magic number

 
Hi, if I remove the magic number in the EA settings will the EA manage a trade I take manuell?
 
Bjorn1:
Hi, if I remove the magic number in the EA settings will the EA manage a trade I take manuell?
I don't understand what you want! An Ea that trades you manual opened positions, an Ea that act as a manual trader, do you have access to the code of the Ea or not..
 

The magic number of a manually-placed trade is 0.

So, *depending on how your EA is coded*, you could set the magic number setting to 0 and it would manage your manual trades.

 
Bjorn1:
Hi, if I remove the magic number in the EA settings will the EA manage a trade I take manuell?

if you want EA to control manual trade just filter order using symbol() and ordetype()

 
Muhammad Ridzuan Mohd Radzali: if you want EA to control manual trade just filter order using symbol() and ordetype()
That means it would control manual trades and any others by any other EA, not good.
Using OrdersTotal directly and/or no Magic number filtering on your OrderSelect loop means your code is incompatible with every EA (including itself on other charts and manual trading.) Symbol Doesn't equal Ordersymbol when another currency is added to another seperate chart . - MQL4 forum
 

Hello BJorn.

If you want to open trades manually and then manage them by EA then set Magic number = 0.

If EA doesn't look for other orders attributes like an Order comments or Symbol name then it will "think" that it is his trades.

Original code

extern int Magic=0;

Modified code:

int Magic=0;
 
Mikhail Zhitnev:

Hello BJorn.

If you want to open trades manually and then manage them by EA then set Magic number = 0.

If EA doesn't look for other orders attributes like an Order comments or Symbol name then it will "think" that it is his trades.

Original code

Modified code:


Thanks all for the help

 
Bjorn1:

Thanks all for the help

Good luck and huge profits!
Reason: