bonjour à tous,
je cherche à superposer une bougie de 1 HEURE dans un graphique de 5mn c’est à dire 12 bougies
avec couleur incluse dans le corps (verte ou rouge)
merci à vous
Merci à toi ivan.
Je n’étais pas remonté aussi loin.
Je reposte le code . Merci à ceux qui l’ont créé, ils se reconnaitrons.
timeframe(1hour)
C5 = close
O5 = open
H5 = high
L5 = low
If c5<o5 then
r=255
g=0
b=0
else
r=0
g=0
b=255
endif
timeframe(default)
If OpenMinute MOD 60 = 55 Then //plot only when the 15-minute bar closes
Drawrectangle(BarIndex - 12,O5,BarIndex,C5) Coloured(r,g,b,180)style(line,2)fillcolor(r,g,b,130) //Body /style Line 2 = Dicke
DrawRectangle(BarIndex - 6,max(O5,C5),BarIndex - 6,H5) Coloured(r,g,b,180)style(line,4) //Upper Wick
DrawRectangle(BarIndex - 6,min(O5,C5),BarIndex - 6,L5) Coloured(r,g,b,180)style(line,4) //Lower Wick
Endif
Return