It is not difficult to get the maximum and minimum price of the daily candle, but how to get the maximum and minimum value of the 8-hour candle? 4 hours? that's what I need,

Example: According to the chart time, you have the values of the penultimate candle, as the market is closed I have the last but tomorrow it will be the penultimate. Lines can be plotted to indicate the location of