defparam drawonlastbaronly=true
C1 = close[2] < open [2]
c2 = close [1] > open [1]
c2a = close > open and close > close [1]
c3 = close > close [2] and close > close[3]
// j'enregistre dans un tableau le signal
if c1 and c2 and c3 and c2a THEN
$signal[count]=low
$signalbar[count]=barindex
count=count+1
ENDIF
// je trace dans le passé les 2 derniers signaux
if islastbarupdate and count>=3 then
for i = count-1 downto count-2
drawtext(" ------ SL ",$signalbar[i],low [$signalbar[i]-2],Dialog,Bold,14 ) coloured ( 255,0,0 )
DRAWARROWUP ($signalbar[i], $signal[i] - 3.5 ) coloured(0,0,255) //coloured(72,224,208) // MEDIUM TURQUOISE
DRAWTEXT ( "◯", $signalbar[i], $signal[i] - 3.5 ,dialog, bold,20) coloured(0,0,255)
next
ENDIF
RETURN