Statistic Window after the backtest

MQL5 Scripts Outros

Termos de Referência

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:


Respondido

1
Desenvolvedor 1
Classificação
(590)
Projetos
789
71%
Arbitragem
9
33% / 33%
Expirado
22
3%
Livre
Publicou: 8 códigos
2
Desenvolvedor 2
Classificação
(119)
Projetos
127
41%
Arbitragem
3
33% / 67%
Expirado
0
Livre
3
Desenvolvedor 3
Classificação
(258)
Projetos
396
28%
Arbitragem
69
19% / 49%
Expirado
121
31%
Livre
4
Desenvolvedor 4
Classificação
(130)
Projetos
210
40%
Arbitragem
90
20% / 43%
Expirado
85
40%
Livre
5
Desenvolvedor 5
Classificação
(1)
Projetos
1
0%
Arbitragem
1
0% / 100%
Expirado
0
Livre

Informações sobre o projeto

Orçamento
100 - 500 USD