need Chart Id number for MT5

 
anyone know where i can find it or a indicator that will?
 
Documentation on MQL5: Chart Operations / ChartID
Documentation on MQL5: Chart Operations / ChartID
  • www.mql5.com
Chart Operations / ChartID - Reference on algorithmic/automated trading language for MetaTrader 5
 
sorry......complete neebie to programming just trying to get the ID's for prebought app...how do i run that script/
 

Talk to the developer.

//--- variables for chart ID
   long currChart,prevChart=ChartFirst();
   int i=0,limit=100;
   Print("ChartFirst =",ChartSymbol(prevChart)," ID =",prevChart);
   while(i<limit)// We have certainly not more than 100 open charts
     {
      currChart=ChartNext(prevChart); // Get the new chart ID by using the previous chart ID
      if(currChart<0) break;          // Have reached the end of the chart list
      Print(i,ChartSymbol(currChart)," ID =",currChart);
      prevChart=currChart;// let's save the current chart ID for the ChartNext()
      i++;// Do not forget to increase the counter
     }
 
Marco vd Heijden:

Talk to the developer.

he isnt responding
 
he sent a indicator that finds the ID for mt4
Reason: