No you can just call ExpertRemove(); function or code it in a way that it will go into sleep mode until you want it to wake up again.
I know how to stop an EA, I would like to know if there is a possibility for an EA to stop manual trading: can I code an EA that rejects every attempt to insert an order wherever it comes from? I need it to restrict my operativity in certain circumstancies.
Thanks for your answer
Manual trading is always dominant for obvious reasons.
You can not reject any manual orders.
You could reject orders from another EA when you use global variables of the terminal or read write to files and sockets or pipes.
If you want to limit trading capabilities on the terminal use the investor password.
Send an Alert. When you see the alert, stop trading.
- 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 everybody,
I would like to ask you a little help: I am trying to write an EA that could disable the trading on my account (no new trades) when a condition has been reached. For example, I reach 2% growth on my equity for a specified day and then I want my EA to stop me to trade more for that day… Do you know if there is a command/function in the MQL5 Language to do that? I cannot find it…
Thanks!
Federico