int i; for(i=0; i<Records; i++) dataSet(1,i,0,dataVar(1,i,0)+(1/(24.0*60))); // Add a minute to change from open bar dates to close bar dates