Following code gives me two horizontal lines for H L of previous candle in any time frame.
PH = LastValue(Ref(H, -1));
Plot(PH, "PH",colorGreen,styleLine|styleNoRescale|styleNoTitle);
PL = LastValue(Ref(L, -1));
Plot(PL, "PL",colorPink,styleLine|styleNoRescale|styleNoTitle);
How...