I am testing an EA that is taking too long by running over the entire test period for each pass despite running out of money at a much earlier time in some passes. How can I stop or terminate this EA during testing
- MetaTrader 5 Built-in Trading Strategy Tester
- Algorithmic (automated) trading in MetaTrader 5
- MQL5 Wizard: Development of trading robots for MetaTrader 5
ssn:
I am testing an EA that is taking too long by running over the entire test period for each pass despite running out of money at a much earlier time in some passes. How can I stop or terminate this EA during testing
Click on Stop button.
I am testing an EA that is taking too long by running over the entire test period for each pass despite running out of money at a much earlier time in some passes. How can I stop or terminate this EA during testing
I meant in code... but I have actually found a way around this. Just use
return;
My EA is not that bad ;-(
return;
My EA is not that bad ;-(
Are you sure return; will terminate it during testing?
It worked in my situation... and this was within OnTick()
ssn:
It worked in my situation... and this was within OnTick()
Return in onTick don't terminate (or deinitialize) the execution of an EA, it simply ends the current OnTick execution.
It worked in my situation... and this was within OnTick()
![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