Convert tick data to second bars