Download MetaTrader 5
To add comments, please log in or register
Sell your applications via the Market. It is secure!
Noo Porima
29
Noo Porima 2016.03.22 06:56 

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

Khurram Mustafa
27486
Khurram Mustafa 2016.03.22 08:09  
Visit library , see documentation section,   
Noo Porima
29
Noo Porima 2016.03.22 09:23  
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?

Stuart Browne
5780
Stuart Browne 2016.03.22 09:28  
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
Khurram Mustafa
27486
Khurram Mustafa 2016.03.22 09:39  
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
Noo Porima
29
Noo Porima 2016.03.22 12:50  

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.

Marco vd Heijden
Moderator
4680
Marco vd Heijden 2016.03.22 13:20  
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.
Noo Porima
29
Noo Porima 2016.03.22 16:03  
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
Marco vd Heijden
Moderator
4680
Marco vd Heijden 2016.03.22 16:35  
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
hdur
6
hdur 2016.03.25 14:13  
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.

Siti Latifah
6443
Siti Latifah 2016.03.27 09:17  
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...

/ /12
To add comments, please log in or register