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