Launch another ea from currently running ea
use other name instead of start. for example:
first_ea
#import "another_ea.ex4" int start_from_outside(); start() { datetime certainTime; //e.g. 7:00 AM if(Time[0]==certainTime) { start_from_outside(); } }
another_ea
int start() { start_from_outside(); return(0); } int start_from_outside() { // your code here }
How can I start an ea from a currently running ea at a certain time?
I tried this, but it did not work:
A problem might be that the start()-Funktion is defined twice.
I cannot access the source code of "another_ea.ex4", because I do not have the mq4-file.
Additionally I need to call the other ea with calculated settings like an indicator via iCustom(...).