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
- 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.

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