You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hey Guys,
I'm a newbie and am thinking of learning how to write an EA.
However I'm just wondering whether it's possible to program an EA to run another EA?
Thanks
I think possible or not, depend on your rule.
example, EA2 will run if EA1 has order
and etc...
I think possible or not, depend on your rule.
example, EA2 will run if EA1 has order
and etc...
No, You can't create connections in between 2 EAs
Buy You can Create connection in between 2 indicators by using iCustom() function
You can "communicate" between 2 (or more) EAs or indicators using a variety of methods such as DLLs, named pipes, files, global variables and custom events. But as per the original question, you can't get one EA to "start" another if it's not already loaded, except using the template example mentioned previously. So using a combination of all of those methods, depending on exactly what you are trying to achieve, it may be possible to do what you want.
But if you are just beginning programming, it may be better to start with something a lot easier as it is by no means a trivial task.
Sorry Khurram, I don't mean to deliberately keep correcting your comments mate and sincerely appreciate your input ;-)
You can "communicate" between 2 (or more) EAs or indicators using a variety of methods such as DLLs, named pipes, files, global variables and custom events. But as per the original question, you can't get one EA to "start" another if it's not already loaded, except using the template example mentioned previously. So using a combination of all of those methods, depending on exactly what you are trying to achieve, it may be possible to do what you want.
But if you are just beginning programming, it may be better to start with something a lot easier as it is by no means a trivial task.