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?
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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.