Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

Reports - MetaTrader 5 Library | MT5 EA Download - MetaTrader 5 Resources

author EAcpu | 3 reads | 0 comments |

Report - library for MetaTrader 5

Report - library for MetaTrader 5

Report - library for MetaTrader 5

Report - library for MetaTrader 5

Report - library for MetaTrader 5

The library is a revised version of an excellent playbook released in 2006 , adapted to modern MQL possibilities. Some features have been removed and new ones added.

In both platforms (MetaTrader 4/5) you can run the following script to save the report (in MetaTrader 4 form):

 #Include <report.mqh> blank on startup ()
{
  report::toFile( "report.htm" );
}

And view the generated HTML report in the results file:

Report - library for MetaTrader 5

It is particularly useful in MetaTrader 5, which does not offer visual HTML reports like MetaTrader 4 (as of publishing).

Output of the balance graph on the chart.

 #Include <report.mqh> blank on startup ()
{
  Report::ToChart(); // Output of balance chart on chart }
  • Reports are automatically saved in the tester at the end of a single test and during optimization.

    At the end of a single run in the tester, the library can automatically save a report of test results for any Expert Advisor. Add the following lines to the EA source code:

     #Define report tester // Reports will be automatically written into the tester
    #include <report.mqh>

    The same row will be able to save the report for each optimization run .

    It allows you to evaluate results immediately without waiting for optimization to complete. Once optimization is complete, you don't need to launch separate tests and wait for results. It allows you to visually evaluate all results calculated by the optimizer. Balance graphs (PNG files) from multiple separate runs can be displayed as thumbnails on one chart.

    In MetaTrader 5, this library uses the MetaTrader 4 order library.


    Attachment download

    📎 report.mq5 (0.09 KB)

    📎 report.mqh (20.61 KB)

    Source: MQL5 #18801

  • Verification code Refresh