Master EA than disables the other EAs

 

Hello!


I'm trying to make a master EA that disables the trading of the other EAs when some requeriments have been acomplished. But in MQL4 there isn't any function to stop or disable trading, so I'm trying to by-pass this limitation using dll/winuser32 or something... my idea is to automaticly uncheck the live trade checkbox in the options submenus of the platform. Do you know any way easier than this to do the same? It's a dirty trick...


My aproach starts using the code of this script: 'ReConnecter - A Script for Periodical Reconnections'


Your comment will be very apreciated. Thanks.

 
Hi,

You can use GlobalVariableSet() and GlobalVariableGet() functions. Check the documentation.

The master EA will set a variable to allow/disallow trading and the other EAs will read it to know if they should trade or not.

 

Thanks robofx.org I counted with the Global Variables but the Master EA must be able to manage others EA's that cannot be altered.

Reason: