# Two EAs on the same Pair

Team,

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

Why not ?

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 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!

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.

Simon Akubue #:

Osama,

Thank you so much.

You are great!

You will need to ensure the EAs have different Magic numbers to avoid conflicting trade functions