How to call (start) another MQL4 EA from one MQL4 EA (no source code compiled in MQL4) and if necessary force it (another EA from the first one) to stop ? Interaction between them through global variables is excluded.
Yan Barmin: How to call (start) another MQL4 EA from one MQL4 EA (no source code compiled in MQL4) and if necessary force it (another EA from the first one) to stop ? The interaction of global variables between them is excluded.
1. open the chart of the desired pair and apply the template with the EA without source code.
1. open the chart of the desired pair and apply the template with the EA without source.
2. Apply the template without the EA.
You did not understand the question - it is necessary to call from the code of one EA to another compiled EA, which is (or is not) hovering on the chart. For indicators, there is such a possibility, but for Expert Advisors? Let me explain. If I trade with my EA, the situations appear in the market, which are well worked out by another EA (its author and source code are long gone), how to call it from my EA in MQL4 and close the situation when it works out? The answers are clear, why re-invent the wheel, if it is already there, I just need to call it, wait for the situation to work out and then stop. If necessary, repeat the procedure again.
Yan Barmin: You did not understand the question - you need to call from the code of one EA to another compiled EA already hovering (or not) on the chart. For indicators, it is possible, but for expert advisors?
And there is no such feature built in for the EA. So see here..:
You haven't said anything specific, so Alexei has only given you a possible course of action. But it looks like you need to exchange data between the two EAs. Just running the second EA in a new window will not help if it is in closed code.
How to call (start) another MQL4 EA from one MQL4 EA (no source code compiled in MQL4) and if necessary force it (another EA from the first one) to stop ? The interaction of global variables between them is excluded.
1. open the chart of the desired pair and apply the template with the EA without source code.
2. Apply the template without the EA.
1. open the chart of the desired pair and apply the template with the EA without source.
2. Apply the template without the EA.
You did not understand the question - you need to call from the code of one EA to another compiled EA already hovering (or not) on the chart. For indicators, it is possible, but for expert advisors?
And there is no such feature built in for the EA. So see here..:
Forum on trading, automated trading systems and strategy testing
Any questions from newbies on MQL4, help and discussion on algorithms and codes
Alexey Viktorov, 2018.09.08 08:57
1. Open the chart of the desired pair and apply the template with the EA without source.
2. To apply a template without the Expert Advisor.
And there is no such feature built in for the EA. So see..:
I will try. Thank you.
You haven't said anything specific, so Alexei has only given you a possible course of action. But it looks like you need to exchange data between the two EAs. Just running the second EA in a new window will not help if it is in closed code.
I will give it a try. Thank you.
Write the indicator and the conditions in the indicator and drop it onto the chart:
This way the indicator will load the required pre-created template with the EA
Write the indicator and the conditions in the indicator and drop it onto the chart:
This way the indicator will feed the required pre-created template with the EA