I calculate the maximum rate from H1, from specific hours in my case, 9-10 and 15-16
What to do to get the calculated value on the chart by the end of the day or a specific time?
Need to check later when this value exceeds the price, e.g. for cross functions?
It is about calculating the red lines marked by me on the print screen.
Request for help, thanks in advance
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
TimeFrameSet(inHourly);
K_H1=(Ref(H,1));
K_L1=(Ref(L,1));
TimeFrameRestore();
TimeFrameExpand(K_H1, inHourly);
TimeFrameExpand(K_L1, inHourly);
K_H1=(TimeFrameExpand(K_H1, inHourly));
K_L1=(TimeFrameExpand(K_L1, inHourly));
Plot(K_H1, "" , colorGreen, styleThick | styleNoLabel | styleNoTitle );
Plot(TimeNum()==090000, "", colorYellow, styleArea | styleOwnScale | styleNoLabel | styleNoTitle );
Plot(TimeNum()==100000, "", colorYellow, styleArea | styleOwnScale | styleNoLabel | styleNoTitle );
Plot(TimeNum()==150000, "", colorYellow, styleArea | styleOwnScale | styleNoLabel | styleNoTitle );
Plot(TimeNum()==155900, "", colorYellow, styleArea | styleOwnScale | styleNoLabel | styleNoTitle );