Tick chart calculation fix