You are trying to convert the data into a continuous contract?
Best method I have found is volume adjusted. Compute volume for the front and first back-month contracts and roll to the
next contract when the volume of the back-month contract exceeds the volume of the current front month contract.