MagicNumber conflict

 
At EA I have one set up to buy and other to sell at same account.

I set all BUY's at one plataform e Sell's at other but used magicNumber 0 in all currency pairs.

There is a interferance. Do I have to open one account to each set up?

I need magicNumber 0 to open a trade managed by EA.

How to solve this? Is there only one magicNumber (0) that allow EA control trades opened manually?

Thanks.
 

ed

If I understand your question,

you should use one MagicNumber (e.g 10111) for BUYs on EURUSD, 102111 for BUYs on USDJPY

a different one for SELLs (e.g. 101222) on EURUSD, 102222 for SELLs on USDJPY, etc

Leave MagicNumber=0 for manual trading?


To go further, you could separate EA's on timeframe as well, eg

MagicNumber=101001111 for BUYs on EURUSD on the M1 chart

and for EA version

MagicNumber=101001112 for BUYs on the EURUSD on the M1 chart on version 2 of the EA?


NB - a max of nine digits is allowed as MagicNumber is an int


And yes, there is only one MagicNumber=0 per account

Good Luck

-BB-

 
BarrowBoy,

What if I introduce EXPERT ID? One EXPERT ID for BUYs and other for SELLs?

I think this way the MT4 will "think" that are differents EA's then I can use MagicNumber=0 at all chart windows.

Am I right?

Thanks.
Reason: