Two EAs running in the same window

 
Hi, this is MQL4. I have a friend that's asked me to "combine" two EAs for him. Basically he wants to be able to run both of them in the same window. Is there an easy way to do this?
 
cuallito:
Hi, this is MQL4. I have a friend that's asked me to "combine" two EAs for him. Basically he wants to be able to run both of them in the same window. Is there an easy way to do this?


One can't run two EAs on the same chart - one can run one EA on one chart. So if you were to open two charts, each with the same time frame and same currency pair, then you might accomplish what you are looking for.

 

Or a slightly messy bit of work and turn each ea into a function which can then be called from the start function.

EA1 Start() ===> void function1 {}

EA2 Start() ====> void function2{}

Combined EA

Start()

{

function1() ;

function2() ;

}

all extern params to front of EA

all variables and function of the same name renamed to be different.

Reason: