Does closing chart work on MQL VPS?

 

Does closing chart work on MQL VPS?

   long chid=ChartFirst();
   while(chid >= 0)                             // Just do ALL charts, no counting needed.
     {
      long nextID = ChartNext(chid);            // Get the next chart before closing current
      ChartClose(chid);
      chid = nextID;                            // process next chart.
     }