I was wondering if anybody of you know a reliable way to programmatically abort a MT4 backtest.
The point is that if during an optimization pass a given halt condition is met, (e.g. DD > 5% or a custom OnTester() value is over a threshold etc...) there's no reason to continue the test to the end date.
Actually i use a work-around setting a boolean flag ABORT to true and at the OnTick() beginning just
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Hello folk,
I was wondering if anybody of you know a reliable way to programmatically abort a MT4 backtest.
The point is that if during an optimization pass a given halt condition is met, (e.g. DD > 5% or a custom OnTester() value is over a threshold etc...) there's no reason to continue the test to the end date.
Actually i use a work-around setting a boolean flag ABORT to true and at the OnTick() beginning just
if ( ABORT ) return;
... but this is a sub-optimal solution.
Any idea?