09 must be written 090000 and 10 must be written 100000.
Hello Roberto,
gracie mile…but it won`t work. I found this “alternative” code…it works great:
starttime = 090500
endtime = 100500
if intradaybarindex=0 then
hh = 0
ll = 0
alreadydrawn = 0
endif
if time=starttime then
startbar=barindex
endif
if time=endtime then
endbar=barindex
endif
if time>=starttime and time<=endtime then
if high>hh then
hh = high
endif
if low<ll or ll=0 then
ll = low
endif
endif
if time>endtime and alreadydrawn=0 then
drawrectangle(startbar,hh,endbar,ll)
alreadydrawn=1
endif
RETURN
Anyway, thank you for support.
Regards Micha