Hello Roberto,
gracie mile…but it won`t work. I found this “alternative” code…it works great:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
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