
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
Opposite to all the denying postings here this has been possible *from* MQL since more than 10 years (not *with* pure MQL). To re-enable disabled experts just call the function again.
In fact the command toggles the EA status: enabled => disabled => enabled => disabled and so on.
Hello,
You are correct, the command toggles the EA status: enabled => disabled => enabled => disabled and so on.
I want, disable the Button only if it Enabled. or vice versa.
Thnx!
Hello
I want to Disable / Enable Expert (Auto Trading) button programmably as if i click on it to enable or disable Expert according to condition. I am searching MQL4 code to do that but i did not find.
Any help please.
Opposite to all the denying postings here this has been possible *from* MQL since more than 10 years (not *with* pure MQL). To re-enable disabled experts just call the function again.
In fact the command toggles the EA status: enabled => disabled => enabled => disabled and so on.
Great!
Thank you.
I use this on a indicator to enable/disable the auto trade.
Use this code:
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 ?
//modified it sir so it can be used on buttons for click events as well
I have no programming idea, and I need the autotrading button to be disabled when I have a float of more than x%. And then lower the float of that x% to activate the autotrading button again.