CChart.Next() probblem New comment Giovanni Catti 2015.06.25 15:18 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#include <Charts\Chart.mqh> ...... CChart indexChart; ...... indexChart.FirstChart(); int limit=30; while(h<=limit) { if(indexChart.Symbol() == Symbol() && indexChart.Period() ==timeframeSup ) { Print("Found TF sup",timeframeSup); break; } else { indexChart.Next(); Print("next ",indexChart.Symbol()," ",indexChart.Period()); } h++; } Bulk Operations - Trade - MetaTrader 5 for iPhone Bulk Operations - Trade - MetaTrader 5 for Android Close By - Trade - MetaTrader 5 for Android Alain Verleyen 2015.06.25 18:07 #1 Forum on trading, automated trading systems and testing trading strategiesHello, 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(). How to count bar RSI EA Help 4554 New comment
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