In my mt5 there are two opened chart with a timeframe (1H) and a superiortimeframe (4Hour)It seems the method Next of calls CChart doesn't work.It remain always on the same chart.Here the code
if(indexChart.Symbol() == Symbol() && indexChart.Period() ==timeframeSup )
Print("Found TF sup",timeframeSup);
Print("next ",indexChart.Symbol()," ",indexChart.Period());
Forum on trading, automated trading systems and testing trading strategies
Please use the SRC button when you post code. Thank you.
This time, I edited it for you.
The right method is NextChart(), not Next().