Skip to the guide

PRACTICAL GUIDE · ENGLISH

How to export comparable MT5 backtest reports

Keep the detailed HTML from each run and a separate record of its test conditions. You can then compare the reported deals without losing the evidence needed to investigate a difference.

By TraceLark · Published · Updated

TraceLark is the MT5 report-comparison web application at tracelark.chaptertidy.xyz. It compares two exported HTML reports locally in your browser.

What you need: two completed, single-test MT5 Strategy Tester reports in HTML, each with no more than one traded symbol. This guide is about exporting and comparing evidence, not predicting returns or proving why a strategy changed.

1. Export each completed test as HTML

  1. Open the desktop Strategy Tester. Select the EA and the intended test settings. For a single report, run a single test rather than exporting an optimization table. If the completed run you need is already available, export it before changing anything.
  2. Open the completed run's results. Look for the tester's results/report tab, commonly labelled Results or Backtest. Right-click in that report and use the report-saving command. Depending on the build and language, this may be Save as Report or a Report submenu with an HTML option.
  3. Choose HTML. Save the original .htm or .html file. An Excel workbook, optimization XML, PDF, screenshot or account-history statement is not the detailed Strategy Tester HTML that TraceLark accepts. Changing a filename extension does not convert a file.
  4. Give the runs distinct names and folders. For example, run-A-baseline/report.htm and run-B-candidate/report.htm. These are naming examples, not trading results. Keep any companion images MT5 creates with the original report for viewing it.
  5. Repeat for the second run. Keep both originals unedited. Put your settings and notes beside each report instead of rewriting its HTML.

Menu wording varies by MT5 version and language. The MQL5 export walkthrough illustrates saving from the results tab; the MQL5 report-format article distinguishes test HTML/XLSX from optimization XML. Check the file contents below rather than relying on its name alone.

2. Keep a run checklist beside each report

For a repeatability check, hold the intended conditions constant. For a deliberate A/B experiment, write down what you changed. A report can still be compared when conditions differ, but those differences limit what the result means.

  • Program: EA version or build identifier, the exact input parameter set, and any external files or state the EA depends on.
  • Test window: symbol, timeframe, start/end dates and whether this is the backtest or a separate forward period.
  • Data and execution: MT5 build, broker/server, tick modeling mode, execution delay and any custom symbol or commission settings.
  • Account assumptions: starting deposit, currency and leverage.
  • Evidence: reported history quality, bars/ticks where available, and the tester journal for that run. Mark details you cannot recover as unknown.

Save the input parameters as a .set file and retain the tester settings separately. MetaQuotes documents these controls in Strategy Testing. TraceLark reads the HTML reports; it does not import parameter files, journals or EA code.

Same settings do not prove identical data. MetaQuotes notes that real-tick testing can generate ticks where a minute has no tick data. Record the mode and inspect history warnings. Neither a matching quality percentage nor matching deal records proves identical underlying ticks. See Real and Generated Ticks.

3. Check the files before comparing

Open your own exported HTML locally and look for the settings and results, then the detailed Orders and Deals tables. A profit summary or chart alone is not enough. If the run had no trades, preserve that fact; do not add fabricated rows to make an empty report pass.

TraceLark's supported template has an 11-column order table and a 13-column deal table. It accepts UTF-8 or UTF-16LE with a byte-order mark. Preserve the native export instead of copying it through a spreadsheet or web editor, which can change dates, decimal separators or table structure.

  • Each file: at most 100 MiB, 100,000 buy/sell deals and 200,000 order/deal data rows.
  • At most one traded symbol per report. Multi-symbol runs and MT4 reports are outside the supported scope.
  • Keep source timestamps unchanged. TraceLark does not infer timezones or apply automatic time/price tolerances.

The official testing-report reference explains the reported statistics. A high history-quality value describes the report's data-quality measure; it is not proof of future profitability.

4. Compare the reports in TraceLark

  1. Open the comparator, choose the baseline as A and candidate as B, then select Compare reports. Files are processed in a browser Worker on your device, without report uploads.
  2. Read coverage and diagnostics first. Core deals, monetary fields and balance events have separate results. An incomplete dimension cannot establish full agreement.
  3. Inspect the first observable difference, the original rows, nearby records and linked orders. Review reported conditions without treating missing fields as matches.
  4. Preview the comparison export before sharing. Parameter values and comments are excluded by default. Review the remaining evidence, filenames and identifiers too. The export is selected evidence, not a full copy of either original report.

Interpretation boundary: TraceLark groups core deals by their reported second and preserves repeated-record counts. Reordered rows alone are not a core difference. Agreement does not establish the execution order within a second, identical EA code or hidden state. A difference locates evidence; it does not automatically diagnose its cause or predict trading returns.

After the app has loaded, comparison and export work offline. Opening or reloading the site still needs a connection. Keep private originals and logs on your own device, and share only the evidence you intend to disclose.

Read the evidence-retention checklist for what to keep during a follow-up investigation.

Common export problems

I only have optimization XML or an XLSX file.
Return to the relevant single test and export its detailed HTML. Renaming XML or XLSX to .html will not work. A fresh run is new evidence, so retain the original settings and note when it was rerun.
The report opens, but TraceLark shows incomplete coverage.
Read the diagnostics. Missing sections, truncated files, unknown records or a customized layout can leave evidence uncovered. Re-export from MT5 if possible. Do not delete unknown rows or reinterpret an incomplete result as agreement.
Can the two reports use different languages?
Yes, within the supported input languages. The app detects each report independently. Source values, comments and parameter names remain untranslated. This guide is English-only; changing the app's language does not translate it. See the language-validation scope: complete real-export validation has covered Simplified Chinese, English and German; the other eight languages have native-label and synthetic-fixture coverage, not complete real-export validation.
Can I save reports from automated tester runs?
For an existing tester configuration, MetaQuotes documents Report in the [Tester] section. Without an extension, a test report uses .htm; optimization uses .xml. The destination subfolder must exist. ReplaceReport=0 avoids overwriting by adding a numbered suffix, and forward results use a separate .forward file. Check the actual output and keep each run distinct. See Platform Start.

Sources and verification scope

Export instructions and tester behavior are based on the MetaQuotes help and MQL5 articles linked above. Interface labels can differ across builds. TraceLark limits and comparison behavior are checked against its implementation and tests. No customer reports, account identifiers, parameter values or claimed trading returns are published in this guide.

Use the comparator's Try an example option to explore a clearly labelled synthetic example. It demonstrates evidence inspection, not investment performance. Follow the worked comparison example and read its exported evidence.

Compare two reportsProduct guide and FAQBack to top