Max and minimum from a specific time interval

Good morning
I would like to draw a rectangle on the graph. Its sides will indicate the appropriate time period (e.g. 18-22) and indicate the result of the calculated maximum and minimum stake. Moreover, I would like to use these values ​​for analysis.
I have no idea how to use the HHV and LLV functions and, for example, Ref, so that the calculations relate to the hours defined by me, the same every day.
Please help, i do not know if you can use Hour function for this or maybe somehow TimeFrame or ParamTime?

image

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.