Chart after the backtest

To add comments, please log in or register
Henrique Vilela
1971
Henrique Vilela  

After the backtest one chart is open with the arrows and lines representing the orders / deals.

Is it possible to access / manipulate it? I would like to present some custom statistics there.

Henrique Vilela
1971
Henrique Vilela  

I'm trying to do this:

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

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

But it returns "12345", the 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.

Any Idea?

To add comments, please log in or register