Re,
je t’ai décommenté le defparam drawonlastbaronly,
je t’ai rajouté 2 blocs de lignes chacun entre des lignes ////////////// pour capturer les 2 signaux les plus récents
ils sont tracés non plus via un chandelier coloré, car drawcandle ne peut se dessiner que sur barre en cours et par conséquent ne cohabite pas avec un drawonlastbaronly où on aurait besoin de la redessiner dans le passé à chaque nouvelle barre, mais via une flèche DRAWARROWUP de la couleur voulue light sky blue
Defparam DRAWONLASTBARONLY = true
//PrixHaussier=1
//BOhaussier=1
TRADINGTIME = time >= 034500 and time < 220000
// ------------------------------------------------------------- BREAKOUT HAUSSIER SUPERTREND [2.5,10] -------------------------------------------------------------
ST = supertrend [2.5,10]
SignalSt = close > ST
p = 20
dev = 2.5 // Modifiable en 2.5
BollSup =Average[p](close)+dev*std[p](close)
//BollInf = Average[p](close)-dev*std[p](close)
a1 = close > BollSup
// // ANALYSE 9 DERNIERS CHANDELIERS ET LE CHANDELIER EN COURS
// -- Le calcul se fait sur les 9 précédents et le chandelier en cours
hh=highest[9](high)
//bullish breakout
if hh<>hh[1] then
hhbar=barindex
ENDIF
if close crosses over hh[1] then
if SignalSt and TRADINGTIME and BOhaussier then
//////////////////////////////////////////////////
s2O=s1O
s2H=s1H
s2L=s1L
s2range=s1range
s2a1=s1a1
bars2=bars1
vars2=vars1
s1O=open
s1H=high
s1L=low
s1range=s1H-s1L
s1a1=a1
bars1=barindex
vars1 = hh[1]
//////////////////////////////////////////////////
ENDIF
ENDIF
//////////////////////////////////////////////////
if bars2>=9 then
DRAWarrowUP(bars1,s1L-s1range)COLOURED(135,206,250)//DRAWCANDLE(s1O,s1H,s1L,s1C)COLOURED(135,206,250) // LIGHT SKY BLUE
if s1a1 then
drawtext("ALERT >> ",bars1-9,hh[barindex-bars1+1],SansSerif,Bold,12) coloured(255,0,0)
ENDIF
drawtext(" ---------------------",bars1-9,hh[barindex-bars1+1],SansSerif,Bold,14) coloured(0,0,255)
drawtext("BO ",bars1-9,hh[barindex-bars1+1],SansSerif,Bold,12) coloured(0,0,255)
If PrixHaussier then
DRAWTEXT(" #vars1# ", bars1-8,vars1 ,SansSerif,Bold,10) COLOURED(0,0,255)
ENDIF
//
DRAWarrowUP(bars2,s2L-s2range)COLOURED(135,206,250)//DRAWCANDLE(s2O,s2H,s2L,s2C)COLOURED(135,206,250) // LIGHT SKY BLUE
if s2a1 then
drawtext("ALERT >> ",bars2-9,hh[barindex-bars2+1],SansSerif,Bold,12) coloured(255,0,0)
ENDIF
drawtext(" ---------------------",bars2-9,hh[barindex-bars2+1],SansSerif,Bold,14) coloured(0,0,255)
drawtext("BO ",bars2-9,hh[barindex-bars2+1],SansSerif,Bold,12) coloured(0,0,255)
If PrixHaussier then
DRAWTEXT(" #vars2# ", bars2-8,vars2 ,SansSerif,Bold,10) COLOURED(0,0,255)
ENDIF
endif
//////////////////////////////////////////////////
RETURN