How to use tick history