Use script to turn experts off?

 
Hello,

I would like to have a script that does a bunch of stuff and then turns EAs off.

Can a script turn the EAs off so ANY EA would stop trading?

Thanks,
 
Use global variable and check this variable in the first line of start() function of your expert advisors.
 
Use global variable and check this variable in the first line of start() function of your expert advisors.


I was hoping there was a way to control the actual settings in the trade station, but this is an OK workaround.

Thank you very much for your answer.