Download MetaTrader 5

Two EAs on the same Pair

To add comments, please log in or register
Simon Akubue
756
Simon Akubue  

Team,

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

Marco vd Heijden
Moderator
4753
Marco vd Heijden  
Why not ?
Osama Shaban
1470
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. 

Simon Akubue
756
Simon Akubue  
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
1492
Michael Maggi  
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