Is it possible to use expert .ex4 as resource?

 
Probably a long shot because mt4 docs says no. But still is there any way this could be done?
 
Enrique Dangeroux:
Probably a long shot because mt4 docs says no. But still is there any way this could be done?
What do you mean exactly ? Embed one EA into an other EA ?
 
Alain Verleyen:
What do you mean exactly ? Embed one EA into an other EA ?

Yes.

Seems there is no way https://www.mql5.com/ru/forum/214590/page8#comment_14919436
 
Enrique Dangeroux:

Yes.

Seems there is no way https://www.mql5.com/ru/forum/214590/page8#comment_14919436

If you embed an ea into a class which has one public method (basically, or more precise one method for each event handler of the ea OnInit() OnDeinit etc.)- OnTick() you can then have a collection of EA's which you can add to whatever ea you want(as long as it complies to the ea interface), and call them with m_robots[i].OnTick();

 
Amir Yacoby:

If you embed an ea into a class which has one public method (basically, or more precise one method for each event handler of the ea OnInit() OnDeinit etc.)- OnTick() you can then have a collection of EA's which you can add to whatever ea you want(as long as it complies to the ea interface), and call them with m_robots[i].OnTick();

Thanks Amir, but it does not serve my purpose. I need the second EA to run in separate thread so in this sense i can't compile it literally into one unit.

 
Enrique Dangeroux:

Yes.

Seems there is no way https://www.mql5.com/ru/forum/214590/page8#comment_14919436
It is effectively not possible to embed an EA or a library as resource.