IF IsLastBarUpdate = 1 THEN
FOR i = nombreBarres - 1 DOWNTO 1
indexBar =nombreBarres - i
IF (High[i] > High[i-1]) AND (High[i] > High[i+1]) THEN
DRAWTEXT("H#indexBar#", indexBar, high[i]* 1.04 , Dialog, Standard, 15)
haut = high[i]
DRAWTEXT("#haut#", indexBar, high[i]* 1.05) // High
DRAWTEXT("^", indexBar, high[i]* 1.01, Dialog, Standard, 25) // High
ENDIF
IF (Low[i] < Low[i-1]) AND (Low[i] < Low[i+1]) THEN
DRAWTEXT("L#indexBar#", indexBar, low[i]* 0.96 , Dialog, Standard, 15)
bas = low[i]
DRAWTEXT("#bas#", indexBar, low[i]* 0.95) // High
DRAWTEXT("v", indexBar, low[i]* 0.99, Dialog, Standard, 25) // High
ENDIF
NEXT
ENDIF
nombreBarres = nombreBarres + 1
RETURN