$HIprice[0] = 0
$HIbar[0] = 0
$LOprice[0] = 0
$LObar[0] = 0
lp = low[4] <= lowest[10](low)
hp = high[4] >= highest[10](high)
if lp then
DRAWSEGMENT(barindex, low[4], barindex[4], low[4])coloured(255,0,0)
$LOprice[lastset($LOprice)+1] = low[4]
$LObar[lastset($LObar)+1] = barindex[4]
endif
if hp then
DRAWSEGMENT(barindex, high[4], barindex[4], high[4])coloured(0,222,0)
$HIprice[lastset($HIprice)+1] = high[4]
$HIbar[lastset($HIbar)+1] = barindex[4]
endif
IF lastset($HIprice) > 0 THEN
Drawtext("●",$HIbar[lastset($HIprice)],$HIprice[lastset($HIprice)]) coloured(255,0,0,255) //Red
ENDIF
IF lastset($LOprice) > 0 THEN
Drawtext("●",$LObar[lastset($LOprice)],$LOprice[lastset($LOprice)]) coloured(0,128,0,155) //Green
ENDIF
return