What is the easiest way to count bars from the start of the afternoon 00:00:01 till the current pub?

I want to chart the live daily high low HHLL since it occurs and have the data stay in a buffer so that I can see the historical intra day motion, PERIOD_D1 merely allows the current day's price action, and using a 1mn chart and using 1440 comprises yesterday's data.