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.
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.
Hello,
Regarding the Enable/Disable the Expert Button on MT4.
I want Disable the Button only if Its Already Enabled.
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.
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.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
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.