convert price to index for further analysis