Stop backtest

 

Hi guys,

supposing I want to test my EA since 01/01/2015 to 08/12/2017
Supposing on 17/01/2016 there is a condition and i want my EA to fail in the test, how can i do that?
In this way I can save time for the test instead waiting the end.
Thanks

 
ExpertRemove.
 
fxsaber:
ExpertRemove.

Thanks, indeed until now I used this but the question is:
how can I know that the test has not been tested for the total 2 years but it ended earlier and so the data showed in the result are not coherent ? I mean i need to know that the test was stopped earlier in the result :) Thanks

 
Marco Montemari:

Thanks, indeed until now I used this but the question is:
how can I know that the test has not been tested for the total 2 years but it ended earlier and so the data showed in the result are not coherent ? I mean i need to know that the test was stopped earlier in the result :) Thanks

REASON_REMOVE

Documentation on MQL5: Event Handling / OnDeinit
Documentation on MQL5: Event Handling / OnDeinit
  • www.mql5.com
//| Expert initialization function                                   | //| Expert deinitialization function                                 |
 
fxsaber:

REASON_REMOVE

mmm, i would like to output a value in the result grid, together with inputs, drawdown,profit and so on. in this way, checking the result i can filter the unfinished results.

Is it possible?

 
Try it.
 
fxsaber:
Try it.

I did...