// Open/High/Low/Close Vortag
defparam drawonlastbaronly = true
HighVT = DHigh(1)
LowVT = DLow(1)
IF TIME =220000 AND date=yesterday THEN
CloseVT = Close
Endif
//vertical offset to draw text correctly over horizontal lines
Voffset = 0*pipsize
//draw Open/High/Low/Close Vortag Text
DRAWTEXT("VT-Close",barindex-54,CloseVT+Voffset,SansSerif,Standard,10)coloured(153,51,255)
DRAWTEXT("VT-Hoch",barindex-54,HighVT+Voffset,SansSerif,Standard,10)coloured(0,204,51)
DRAWTEXT("VT-Tief",barindex-54,LowVT+Voffset,SansSerif,Standard,10)coloured(0,204,51)
//draw Open/High/Low/Close Vortag lines without extensions
DRAWSEGMENT(barindex-50,CloseVT,barindex,CloseVT) coloured(153,51,255)
DRAWSEGMENT(barindex-50,HighVT,barindex,HighVT) coloured(0,204,51)
DRAWSEGMENT(barindex-50,LowVT,barindex,LowVT) coloured(0,204,51)
RETURN