Please don't post randomly in any section. Your question is not related to the section you posted.
MT4/mql4 has it's own section on the forum.
This topic will be moved, so please don't create another duplicate topic.
Please note that disabling/enabling the "Auto Trading" is not under programmatic control (via MQL).
For security reasons, that is only under manual user control.
However, in the CodeBase section, you will find examples that use DLL calls to the Windows API to indirectly change the "Auto Trading".
As for the Market section, you will have to do your own research, but I doubt you will find it there because DLL usage is strictly forbidden for Market products.
The best solution, if you have the source code, is to modify your EA's to apply these limitations that your require.
Did not know that. Only on MT4 or also on MT5?
Is it explained somewhere?
Oh, so it is not actually touching the "Auto Trading" button or the auto-trading permissions, but instead loading/unloading the EA on the chart. Is that it?
Oh, so it is not actually touching the "Auto Trading" button or the auto-trading permissions, but instead loading/unloading the EA on the chart. Is that it?
Yes exactly.
It's a better solution, it will avoid to flood the logs with error messages, or even "crash" some poorly coded EA which will not like to run without trading permission.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi folks,
Is there anything already existing, and even better if free, that I can use to schedule autotrading in the MT4 app on Windows laptop?
I find that the bot I have running always has a loss most Mondays so I'd like it to automatically schedule autotrading to switch off on a Friday evening and switch back on a Monday night.
I know I could do this manually but the whole point of using a bot is to automate my trading, I don't want to have to make myself available to switch autotrading off and on?
In fact, this should really be built in to the MT app IMO!
thanks