how to run 2 EA at the same time at the same chart?

 
same as the subject
 

I do not know how to open two EAs on the same chart. Why do you not just open two charts and place both EAs on two separate charts?

Thank you.

 
Can't be done. Open two charts.
 
WHRoeder:
Can't be done. Open two charts.

is there a way to run 2 EAs at the same symbol then?
 
adaheem:

is there a way to run 2 EAs at the same symbol then?
Open 2 Charts with the same symbol, put an EA on each chart.
 

An easy way to do this is to follow the following steps:

1. Merge the code of the two EAS into a single mq4 file.

2. Rename function start() of the first EA to start_EA1()

3. Rename function start() of the second EA to start_EA2()

4. Create a new function start() as follows

int start()
{
   start_EA1();
   start_EA2();
}

5. Compile and attach the resulting EA to a chart.

6. Enjoy it.


AM.

 
Joao Rosas:

An easy way to do this is to follow the following steps:

1. Merge the code of the two EAS into a single mq4 file.

2. Rename function start() of the first EA to start_EA1()

3. Rename function start() of the second EA to start_EA2()

4. Create a new function start() as follows

5. Compile and attach the resulting EA to a chart.

6. Enjoy it.


AM.


What if we have only ex file not the source code ?

 
Suhail Chougule:

What if we have only ex file not the source code ?


2 charts eurusd, with the same ea attached to each of them. then you should take into consideration ea's magicnumber 

 

Yup, just use 2 charts with a different magic number on the EA.

 
Joao Rosas:

An easy way to do this is to follow the following steps:

1. Merge the code of the two EAS into a single mq4 file.

2. Rename function start() of the first EA to start_EA1()

3. Rename function start() of the second EA to start_EA2()

4. Create a new function start() as follows

5. Compile and attach the resulting EA to a chart.

6. Enjoy it.


AM.

thanks Mr. Joao, it's could be very helpful. please advise should i add these codes at the start of mq4 file (before the codes of other 2 EAs)