Is it possible to use expert .ex4 as resource?
- Compile as One
- Discussion of article "Use of Resources in MQL5"
- What is the difference between an mq4 ex4 file
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 ?
Yes.
Seems there is no way https://www.mql5.com/ru/forum/214590/page8#comment_14919436Yes.
Seems there is no way https://www.mql5.com/ru/forum/214590/page8#comment_14919436If 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();
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.
Yes.
Seems there is no way https://www.mql5.com/ru/forum/214590/page8#comment_14919436