Bjr,
DEFPARAM drawonlastbaronly = true
once decalage= 2*pipsize
StartHour = 9
StartMinute = 0
EndHour = 9
EndMinute = 15
if openhour <> openhour[1] and openhour = startHour then
OPRHigh = high
OPRLow = low
endif
if openhour = StartHour and openminute < endMinute then
mabarre=barindex
if high > OPRHigh then
OPRHigh = high
endif
if low < OPRLow then
OPRLow = low
endif
endif
DrawHLine(OPRHigh) coloured(0,255,0) style(line,2)
DrawHLine(OPRLow) coloured(255,0,0) style(line,2)
DrawText(“#OPRHigh#”, mabarre, OPRHigh+decalage) coloured(0,255,0)
DrawText(“#OPRLow#”, mabarre, OPRLow-decalage) coloured(255,0,0)
return Close
1 user thanked author for this post.