Feature Request Tester: Generate Backtest Report When Pressing “Stop”

 

Currently, when running a backtest in the MT5 Strategy Tester, the full backtest report is only generated after the testing process reaches the end of the selected testing period.

However, if the backtest is still running and the user clicks “Stop”, the test stops immediately and no backtest report is generated. The user can only see the Balance/Equity graph.

It would be very useful to add a feature that automatically generates a partial backtest report based on the results collected up to the moment when “Stop” is pressed.

For example:

  • Start a backtest from January 2020 to December 2025.

  • The test is still running and has reached June 2023.

  • The user clicks “Stop”.

  • MT5 should generate a report containing all available results from January 2020 through June 2023, instead of showing only the Balance/Equity graph.

Ideally, the generated report should contain the same statistics and information as a normal completed backtest report, such as:

  • Total Net Profit

  • Total Trades

  • Profit Factor

  • Expected Payoff

  • Drawdown

  • Win Rate

  • Average Profit/Loss

  • Maximum Consecutive Wins/Losses

  • And other standard Strategy Tester statistics

This would be especially useful when testing long periods, because users often need to stop a backtest before it reaches the end but still want to analyze the results collected so far.

In short: Please add the ability to generate a backtest report from the current results when the user presses “Stop”, rather than only generating the report when the entire backtest is completed.

 
I agree. However, the report isn't generated by the "Stop" button; instead, it is generated whenever the "Report" button is pressed.
 
fxsaber #:
I agree. However, the report isn't generated by the "Stop" button; instead, it is generated whenever the "Report" button is pressed.

I clicked on the report, and there was nothing there.


 
Luu Tuan Trung #:

I clicked on the report, and there was nothing there.


This is a proposal for functionality.
 

If and until Metaquotes implements such a feature, you can create a custom Tester report generator that captures data during test time.

Here's an example of an MQL5 service that does that, albeit for one specific metric:

https://www.mql5.com/en/blogs/post/774010