Download MetaTrader 5

EA Modify External Variables of Another EA?

To add comments, please log in or register
Josh Calow
39
Josh Calow  

Is it possible for one EA to modify the External Variables of another EA?

If so how could this potential be done?


Many thanks.

Fernando Carreiro
2232
Fernando Carreiro  

No, one EA cannot directly alter "extern" or "input" variables of another EA.

However, you can share "Terminal Global Variables" between EA's running on the same "Client Terminal" process, so that if one EA alters the values of "Terminal Global Variables", the other EA can see it, provided that other EA regularly checks their contents.

Alternatively, using system DLL's you can use inter-process communication to achieve something similar, but this is more complicated and requires programming knowledge, probably beyond what you are seeking.

To add comments, please log in or register