Did you notice that all of your volume is multiples of five? Your last M1 tick is getting multiplied by five. That's because the other four volume data points are being thrown out. grin

Also, your volumeSum function is creating a five-minute lag.