Bonjour,
voici ci dessous un code trouvé dans la bibliothèque, malheureusement quand la première barre se trouve être un plus bas ou plus haut,
le rectangle n’en tient pas compte et prend la cloture de la barre.
if time<=153000 then
plotted=0
endif
IF time >= 153000 and plotted=0 THEN
plotted=1
hh = highest[89](high)
ll = lowest[89](low)
mm = (hh+ll)/2
DRAWRECTANGLE(barindex,hh,barindex[89],ll)coloured ("Darkviolet",100)bordercolor("black")
DRAWSEGMENT(barindex,hh,barindex+30,hh) coloured (0,0,0)STYLE(line,3)
DRAWSEGMENT(barindex,ll,barindex+30,ll) coloured (0,0,0)STYLE(line,3)
DRAWSEGMENT(barindex,mm,barindex+30,mm) coloured ("cyan")STYLE(line,3)
DRAWTEXT("Haut US",barindex+25,hh+(pipsize) ,SansSerif,Bold,10)coloured(0,0,0)
DRAWTEXT("Bas US",barindex+25,ll+(pipsize),SansSerif,Bold,10)coloured(0,0,0)
DRAWTEXT("Middle US",barindex+25,mm+(pipsize),SansSerif,Bold,10)coloured(0,0,0)
ENDIF
RETURN