Does anyone know whether it is possible to program one EA to run another EA?

 

Hey Guys,

I'm a newbie and am thinking of learning how to write an EA.

However I'm just wondering whether it's possible to program an EA to run another EA?


Thanks

 
Visit library , see documentation section,   
 
Khurram Mustafa:
Visit library , see documentation section,   

Actually this is what I was meant to ask.

Has anyone been able to program an EA to run another EA?

 
Noo Porima:

Actually this is what I was meant to ask.

Has anyone been able to program an EA to run another EA?

Not possible to directly load another EA. The closest you will get is to get an EA to load a template which has an EA on it. But in my experience, the Allow Live Trading will not always stay on and there is no way to programmatically interact with that option.

The other option would be to have both EAs running already and communicate with each other via DLL, Named Pipes or Globals
 
Noo Porima:

Actually this is what I was meant to ask.

Has anyone been able to program an EA to run another EA?

No, its not possible in expert but in indicator you can involved other indicator by using iCustom
 

Thanks guys.

Mmmmm....sounds like what I had in mind will be very difficult to develop but not impossible

One more question,

Has anyone in this forum been able to write a script or EA to pull out historical forex records of various market conditions from the archives?

Thanks.

 
Noo Porima:

Has anyone in this forum been able to write a script or EA to pull out historical forex records of various market conditions from the archives?

Thanks.

Of course... that is what we do.
 
Marco vd Heijden:
Of course... that is what we do.
Can you provide more info, etc or samples that I can take a look at? Thanks
 
Noo Porima:
Can you provide more info, etc or samples that I can take a look at? Thanks
https://www.mql5.com/en/code
MQL5 Code Base
MQL5 Code Base
  • www.mql5.com
MQL5 Source Code Library for MetaTrader 5
 
Noo Porima:

Hey Guys,

I'm a newbie and am thinking of learning how to write an EA.

However I'm just wondering whether it's possible to program an EA to run another EA?


Thanks

Try this :

int nr = ChartOpen("USDJPY",PERIOD_MN1);

ChartApplyTemplate(nr,template_);

...template_ being a file saved from former chart with ea running, & deleted.

 
Noo Porima:

Hey Guys,

I'm a newbie and am thinking of learning how to write an EA.

However I'm just wondering whether it's possible to program an EA to run another EA?


Thanks

I think possible or not, depend on your rule.


example, EA2 will run if EA1 has order

and etc...

Reason: