There is a problem with what you ask. 1) You need to add a sleep mode to your ea. 2) Before the sleep mode starts, programming much like the script 'close all open and pending orders' need to occur.
No. 2 closes everything; no. 1 blocks the ea and at a given end time from processing and unlocks the block at a given start time. This will take a bit of programming to add to your ea. A seperate ea will not be able to stop the processing of your ea.
Dave
<<<
![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
Does any one knows a EA to close all open orders and turn of the EA that is placing the orders, at a predifined level of P/L?
Regards