Best solution here is to create a counter and display that value in the watchlist column. In order to get and display the actual time requires we convert that to a string. Once we do so, the sort function fails to work as expected. So we can do this with five lines of code.
First to detect when a new trading day has begun:
def newDay = GetDay() <> GetDay()[1];
Second to track the daily high:
rec dailyHigh = if newDay then high else if high > dailyHigh[1] then high else dailyHigh[1];
Third to detect when a new high has been made:
def newDailyHigh = !newDay and high > dailyHigh[1];
Fourth to count the number of bars since the new high:
rec counter = if newDay then 0 else if newDailyHigh then 1 else if counter[1] > 0 then counter[1] + 1 else 0;
A final line to print the result to the watchlist column:
plot data = counter;
Attached screenshot shows the resulting code in a watchlist.