This is the one with the addition of today’s OPEN:
DEFPARAM DrawOnLastBarOnly = true
ONCE PrevHH = high
ONCE PrevLL = low
ONCE PrecCL = close
ONCE HH = high
ONCE LL = low
ONCE CL = close
If OpenTime = 000000 OR (OpenTime >= 000000 AND OpenTime < OpenTime[1])THEN
PrevHH = HH
PrevLL = LL
PrevCL = CL//close[1]
LL = low
HH = high
CL = close
OP = open
BarID = BarIndex
ENDIF
IF (OpenTime >= 093000) AND (OpenTime <= 161500) THEN
HH = max(HH,high)
LL = min(LL,low)
CL = close
ENDIF
DrawText("Open",barindex-2,OP+1.5*pipsize, SansSerif,Bold) coloured("Fuchsia")
DrawText("HoY", barindex-2,PrevHH+1.5*pipsize,SansSerif,Bold) coloured(0,128,0,75)
DrawText("LoY", barindex-2,PrevLL+1.5*pipsize,SansSerif,Bold) coloured(0,0,255,75)
DrawText("CoY", barindex-2,PrevCL+1.5*pipsize,SansSerif,Bold) coloured(255,0,0,75)
//
DrawSegment(BarID,OP, BarIndex,OP) coloured("Fuchsia") style(dottedline) //Fuchsia
DrawSegment(BarID,PrevHH,BarIndex,PrevHH) coloured(0,128,0,75) style(dottedline) //Green
DrawSegment(BarID,PrevLL,BarIndex,PrevLL) coloured(0,0,255,75) style(dottedline) //Blue
DrawSegment(BarID,PrevCL,BarIndex,PrevCL) coloured(255,0,0,75) style(dottedline) //Red
//
//DrawSegment(pmBarID,pmHH,BarIndex,pmHH) coloured(0,178,238,255) style(dottedline,3) //Cyan
//DrawSegment(pmBarID,pmLL,BarIndex,pmLL) coloured(0,178,238,255) style(dottedline,3) //Cyan
RETURN