Download MetaTrader 5
To add comments, please log in or register
Do you wonder how to use widgets? Read the article!
Simon Akubue
658
Simon Akubue 2016.05.13 19:48 

Team,

Please, can I have two EAs attached to the same Pair EURUSD belonging to the same account?

Marco vd Heijden
Moderator
4506
Marco vd Heijden 2016.05.13 19:55  
Why not ?
Osama Shaban
1385
Osama Shaban 2016.05.13 22:13  

Sure ...

Open 2 charts ... attach EA ot each chart ... let it go ...

Be sure that both EAs are working friendly with other EAs ...

There are some issues that coder should take care of like always considering Symbol() and magic number in it's calculations to not

do bad things to orders are not opened by the same ea ... For example, if EA #1 close all orders whenever profit is $100 ... EA calculates

it's own orders (Now, Profit for EA1 = $100)  but total account profit is -$300 ... EA closing all orders function is missing magic number checking

rule, so, the EA will close all opened orders regardless to magic number which leads to total loss of -$200 instead of gaining +$100 to the balance.

So, be careful about such little tricks. 

Simon Akubue
658
Simon Akubue 2016.05.14 15:28  
Osama Shaban:

Sure ...

Open 2 charts ... attach EA ot each chart ... let it go ...

Be sure that both EAs are working friendly with other EAs ...

There are some issues that coder should take care of like always considering Symbol() and magic number in it's calculations to not

do bad things to orders are not opened by the same ea ... For example, if EA #1 close all orders whenever profit is $100 ... EA calculates

it's own orders (Now, Profit for EA1 = $100)  but total account profit is -$300 ... EA closing all orders function is missing magic number checking

rule, so, the EA will close all opened orders regardless to magic number which leads to total loss of -$200 instead of gaining +$100 to the balance.

So, be careful about such little tricks. 

Osama,

Thank you so much.

You are great! 

Michael Maggi
1378
Michael Maggi 2016.05.15 06:33  
This is the purpose of the Magic Number. If you use different magic numbers you can use the same EA on two charts of the same pair, on the same account, with different settings.  The magic numbers must just be unique to each different use of the EA settings.
/
To add comments, please log in or register