
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
I found solution as following codes
I did make Run=true to stop toggling the auto trading button from on to off and so on.
But i want to toggle Run after change it from true to false, to true again without click on Run to select true again on the EA.
So how to do that with MQL4 ?
You cannot disable auto trading by mql4 code, as I already said. You can follow onewithzachy suggestion by using a GlobalVariable to disable your EAs.
it is possible, I am searching for this too, but I found an ea called guardian equity that once stop all trades after a condition, this desable the autotrading directly from the platform.