Libraries: Report - page 4

 
fxsaber:

The script above does the analysis like ***. Only everything is very fast and clearer. This is for real, of course. I use bibla myself in Tester and in virtualisation.

Information on slippages (only MT5-Hedge) - I have not seen any analogues. Perhaps I will make one for Netting. But this is not the task of the Report, but of another bible...

I'm more about regular data collection, for example, we take data on the list of MT4 accounts by script, put it all in one folder - it's a database, in which information is indelible, then we analyse it all, with checking for duplicates, and make a summary report on all accounts/majiques/instruments or whatever - this is the functionality that I, and maybe others, lack in standard reports.

 
Aleksey Vyazmikin:

I'm more about regular data collection, for example, we take data on the list of MT4 accounts by script, put it all in one folder - it's a database, in which information is indelible, then we analyse it all, with checking for duplicates, and make a summary report on all accounts/majiques/instruments or whatever - this is the functionality that I, and maybe others, lack in standard reports.

You probably have a lot of accounts that need to be monitored. You don't need any Report-bible for that. It is enough to dump the history into the database using the usual history API.

 
fxsaber:

You probably have a lot of accounts that need to be monitored. You don't need any Report-bible for this. It is enough to dump the history into the database using the usual historical API.

What is this "historical API"? And in any case, after the collection you need to analyse it somehow...

 
Aleksey Vyazmikin:

What is this "historical API"? Yes and in any case, after the collection we have to analyse it somehow....

OrderSelect(i,SELECT_BY_POS, MODE_HISTORY).

 

Added anonymous mode - all confidential data is missing: account name and login, server and company name, comments and order majics, order tickets, EA name and its input parameters (MT5).

This allows reports to be transmitted to a third party without fear.


#define  REPORT_MT4_GRAPHICS // Include graphs in MT4 reports. Graphics library from MT5 must be available.


 
#define  REPORT_RANNFOREX    // Accounting for slippages on the corresponding MT4 broker.

A CustomReport script has been added to KB, which shows reports with charts in both platforms, including slippages on the corresponding MT4 broker.

You need to unpack the archive into the MQL4/5 folder and run Scripts\CustomReport.mq4/5. The DLL should be allowed to show the generated report in the browser at once, or run it manually from the Files folder.


Here is an explanation of some figures in the report.

You can choose anonymous mode

Forum on trading, automated trading systems and testing trading strategies.

Libraries: Report

fxsaber, 2018.11.18 20:56

anonymous mode - all confidential data is missing: account name and login, server and company name, order comments and majiques, order tickets, EA name and its input parameters (MT5).

This allows reports to be outsourced without fear.


I recommend trying it on both platforms. Especially on MT4 where slippage data is available.

 
fxsaber:


I recommend trying it on both platforms. Especially on MT4, where slippage data is available.

Most traders underestimate the impact of slippages on the financial result, and for nothing. Slippages, along with spread and commission, can not only affect the size of profit or loss, but also change the loss into profit and vice versa. Until you start counting, you don't realise it.

 
Tired of MT5 single pass reports. Therefore, adding these three lines to the end of any MT5 advisor
#define  REPORT_TESTER       // The tester will automatically record reports
#define  REPORT_BROWSER      // Creating a report with browser startup - requires DLL permission.
#include <Report.mqh>  // https://www.mql5.com/en/code/18801

will open a normal Hedge-Tester report at the end of a single pass, which will show positions in normal form and even slippages.

Try to do this, for example, with Experts\Examples\Moving Average\Moving Average.mq5.


To immediately understand how the report looks like, just run this script on your account

#define  REPORT_BROWSER      // Creating a report with browser startup - requires DLL permission.
#include <Report.mqh> // https://www.mql5.com/en/code/18801

void OnStart()
{
  REPORT::ToFile(); // Create and open the report in the browser.
}


Everything is relevant for MT4 as well.

 
fxsaber:

Thanks for announcing the updates!

ps: when clicking "Download ZIP" (when all codes related to the publication are downloaded), CustomReport.zip is not downloaded. Can you upload its contents normally, as *.mq-files?

 
Andrey Khatimlianskii:

ps: when clicking "Download ZIP" (when all codes related to the publication are downloaded), CustomReport.zip is not downloaded. Can you post its contents normally, as *.mq-files?

It is good that it is not loaded, because the archive contains files from MT5 that are required to run on MT4. This Zip has not been updated since it was created.

It is supposed to unzip CustomReport.zip and, if one wants updates, take the old Report.mqh with the new one.


Another reason - look at Report.mq5 in KB.

#define  FAKE // Remove this line to make the script work. It is necessary to pass the automatic QB check.


ZY I know only one case (by a broker) of third-party use of CustomReport. That's why I don't bother with updating.