Does anyone know if there is a simple way to get the all time high for a ticker from the start of the dataset to the current day of the backtest?

My current solution would involve running through each day to build the history manually, is there a better approach?