Statistic Window after the backtest

MQL5 스크립트 다른

명시

After the backtest one chart is open with the arrows and lines representing the orders / deals. I would like to access this chart as soon as the backtest end to present some statistics there.

IMPORTANT: I'm not talking about optimization, just a simple backtest.

I'm trying to do this:

void OnDeinit(const int reason)
     {
      long chartID=ChartFirst();

      while(chartID>=0)
        {
         Print("Chart: ", chartID);
         chartID=ChartNext(chartID);
        }

        // Do whatever I need in chartID
     }

But it returns "12345", the fake ID of the chart created by the strategy tester.

It's kind of expected, because the EA is running in the Strategy Tester context, I'm just trying to illustrate what I'm trying to achieve here: Run the backtest, when it's finished access the chart that's automatically created.


So what I need is just an automatic way to access this chart to present some statistics there. I don't mind for what is presented there, I will make this part.

IMPORTANT: No DLL allowed.


More information here:


응답함

1
개발자 1
등급
(590)
프로젝트
789
71%
중재
9
33% / 33%
기한 초과
22
3%
무료
게재됨: 8 코드
2
개발자 2
등급
(119)
프로젝트
127
41%
중재
3
33% / 67%
기한 초과
0
무료
3
개발자 3
등급
(258)
프로젝트
396
28%
중재
69
19% / 49%
기한 초과
121
31%
작업중
4
개발자 4
등급
(130)
프로젝트
210
40%
중재
90
20% / 43%
기한 초과
85
40%
무료
5
개발자 5
등급
(1)
프로젝트
1
0%
중재
1
0% / 100%
기한 초과
0
무료

프로젝트 정보

예산
100 - 500 USD