• Sign up >>

Is it possible to use expert .ex4 as resource?

To add comments, please log in or register
Enrique Dangeroux
683
Enrique Dangeroux  
Probably a long shot because mt4 docs says no. But still is there any way this could be done?
Alain Verleyen
39091
Alain Verleyen  
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 ?
Enrique Dangeroux
683
Enrique Dangeroux  
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
Amir Yacoby
1421
Amir Yacoby  
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();

Enrique Dangeroux
683
Enrique Dangeroux  
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.

Alain Verleyen
39091
Alain Verleyen  
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.
To add comments, please log in or register