거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Twitter에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
조회수:
5210
평가:
(42)
게시됨:
2017.11.03 11:52
\MQL5\Scripts\
Report.mq5 (0.09 KB) 조회
\MQL5\Include\
Report.mqh (20.61 KB) 조회
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

This library is a revised version of an excellent script released in 2006, adjusted with modern MQL possibilities in mind. Some features have been removed, and new features have been added.

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

#include <Report.mqh>

void OnStart()
{
  REPORT::ToFile("Report.htm");
}

and see a generated HTML report in the resulting file:

It can be especially useful in MetaTrader 5, which does not provide visual HTML reports like MetaTrader 4 (as of the time of publication).


Additional possibilities of the library in MetaTrader 5

  • Output of balance graph on the chart.

    #include <Report.mqh>
    
    void OnStart()
    {
      REPORT::ToChart(); // Output of balance graph on the chart
    }
    
  • Automatic saving of reports 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 on testing results of any Expert Advisor. Add to the EA source code the following lines:

    #define REPORT_TESTER // Reports will be automatically written in the tester
    #include <Report.mqh>
    

    The same lines will enable saving of reports of each optimization run.

    It allows you to immediately evaluate results without waiting for the optimization completion. After the end of optimization, you will not 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) of multiple separate runs can be shown on one chart as thumbnails.


Note

In MetaTrader 5, the library uses the MetaTrader 4Orders library.

To add balance charts and input values to reports in the optimization mode, you need to register the TypeToBytes library.

#include <TypeToBytes.mqh> // https://www.mql5.com/en/code/16280
#define REPORT_TESTER // Reports will be automatically written in the tester
#include <Report.mqh>

MetaQuotes Ltd에서 러시아어로 번역함.
원본 코드: https://www.mql5.com/ru/code/18801

Martin Martin

An Expert Advisor without a single indicator. Uses lot and step increase.

AlexSTAL_ZigZagProf_channel AlexSTAL_ZigZagProf_channel

A channel based on peaks and troughs of AlexSTAL_ZigZagProf.

Chart Save Template Chart Save Template

The script saves current chart settings to a template with the specified name.

TesterBenchmark TesterBenchmark

Measuring the net performance of MetaTrader 4/5 strategy testers.