I am running a small EA and what to display some Horizontal Lines on open Charts on the Backtester.
With OpenedCharts() I read out all openend Charts and Print them.
It's working well with Live Trading, but in Backtest (Visual Mode) it only returns the one Chart, on which the backtest is running even when more charts are open.
int OpenedCharts()
{
long prevChart=ChartFirst();
int chartCount = 0;
while(prevChart!=-1)
{
Print(ChartSymbol(prevChart));
prevChart=ChartNext(prevChart);
chartCount++;
}
Print("Number of charts = ", chartCount);
return chartCount;
}
I open other Symbols by requesting the iClose() of the Symbols. Open a new Chart via ChartOpen() also not helps. This function seem not working on Visual Backtest mode.
So my question:
Does anybody knows how to Display Objects onto automatic opened charts in Visual Backtest mode?
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Hello,
I am running a small EA and what to display some Horizontal Lines on open Charts on the Backtester.
With OpenedCharts() I read out all openend Charts and Print them.
It's working well with Live Trading, but in Backtest (Visual Mode) it only returns the one Chart, on which the backtest is running even when more charts are open.
I open other Symbols by requesting the iClose() of the Symbols. Open a new Chart via ChartOpen() also not helps. This function seem not working on Visual Backtest mode.
So my question:
Does anybody knows how to Display Objects onto automatic opened charts in Visual Backtest mode?
Thanks for your support!
Timo