I had a script written once that put a "Pause" button on a chart so that I could turn on and off the EA placing trades for periods of time. (Manual off, manual or auto turn back on). I also had it as part of a custom EA that had a whipsaw problem.
It had a time of XX bars for the trading to be off and then turn itself back on. It worked every time.
I don't have that script anymore because my trading is different, but you can get someone in Freelancers to build it for you.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Is there any function in MQL4 to disable EA by Magic number? I want to create a code to disable some EAs by magic number at a specific time and a few hours later enable again.
Thansk,