Sven Martin Zeke Persson: How would I code an EA to shut down (or simply "stop") when a criteria is met? TerminalClose() is not suitable since it shuts down MT - divide by zero is not to nice either..
ExpertRemove
The function stops an Expert Advisor and unloads it from a chart.
void ExpertRemove(); |
![Documentation on MQL5: Common Functions / ExpertRemove Documentation on MQL5: Common Functions / ExpertRemove](https://c.mql5.com/36/48/documentation-on-mql5-common-functions__1.png)
Documentation on MQL5: Common Functions / ExpertRemove
- www.mql5.com
ExpertRemove - Common Functions - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
Fernando Carreiro:
Please folow the link and read the documentation for more details!
ExpertRemove
The function stops an Expert Advisor and unloads it from a chart.
Much appreciated.
![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
Greetings,
How would I code an EA to shut down (or simply "stop") when a criteria is met?
TerminalClose() is not suitable since it shuts down MT - divide by zero is not to nice either..
Blessings,
Martin