Just returning from start() is sufficient. I use this (don't know if it works)
string tradingDisabled = ""; void DisableTrading(string msg){ tradingDisabled = msg+" Trading disabled."; CloseAllOrders(); AlertMe(tradingDisabled); Comment(tradingDisabled); double zero, die = 1. / zero; } int start(){ if(tradingDisabled != "") return; :
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
Hi all,
Does anyone of you know if there is a way to tell the MetaTrader tester that we just want to terminate a test.
For example, let's say that I want to run a test on a 5 years time frame and that after 3 months a condition is triggered on which I would like to stop the test.
The only way I have found now is to just call "return" for the remaining bars and I was wondering if there was a way to not consume that processor time on the remaining bars...
I hope that my explanation is clear and thank you for your help.