Perhaps this rearrangement of data will be of interest to someone.
Suggestions in the order of discussion:
As it seems to me, the emphasis of the report (in perspective) should be on the final result, namely:
- what percentage of coverage of active price movements of a currency pair (or other financial instrument),
- a graph of the risk of investments on deposit (not only drawdowns, but also depending on market situations).
For this, of course, the presented data is not enough, we need a deeper (algorithmic) data processing.
And it is algorithmic data processing that should be the task of users, while rearrangement, rearrangement of data - this would be better for MT developers.
...
The result of this article is not the report shown in the picture above, but a structure with all the report data, not even the structure itself, but a function to get the structure by the name of the file with the report. Then, using this structure, everyone does what they want. There are even three functions for three reports and structures: tester report, optimiser report and trading history.
The result of this article is not the report shown in the picture above, but a structure with all the report data, not even the structure itself, but a function to get the structure by the name of the report file. Then, using this structure, everyone does what they want. There are even three functions for three reports and structures: for tester report, optimiser report and trading history.
The article is useful because it provides additional options for report structure. Thank you to the author for the work done.
New article Analysing trading results using HTML reports has been published:
Author: Dmitry Fedoseev
Hi Dmitry, is it possible to take reports from more than one mt4/mt5 and offer them on a single detailed html page, with real-time data?
The idea would be to add up 3 different brokers and create just 1 complete report being offered on the site, with bar or pie chart. and trading history.
This article should be very useful for my work. However, I encounter an error when I run the scripts.
2022.05.21 16:23:00.048 HTMLReportTest (USDCHF,H1) array out of range in 'HTMLReport.mqh' (470,42)

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
New article Analyzing trading results using HTML reports has been published:
The MetaTrader 5 platform features functionality for saving trading reports and Expert Advisor testing and optimization reports. Trading and testing reports can be saved in two formats: XLSX and HTML, while the optimization report can be saved in XML. In this article we consider the HTML testing report, the XML optimization report and the HTML trading history report.
CSS enables data coloring, which makes the report easier to analyze. Canceled orders will be shown in gray, because they do not provide information of interest. Also gray will be used for market orders, because they provide the same information as deals executed as a result of the orders. Deals will be displayed in bright colors: blue and red. Filled pending orders should also have noticeable colors, such as pink and blue:
Fig. 5. Fragment of the custom HTML report
Author: Dmitry Fedoseev