Rsi14 = Rsi[14](close)
EmaRsi = ExponentialAverage[50](Rsi14)
// Formulation
Achat = Rsi14 > 0 and EmaRsi > EmaRsi[1]
Vente = Rsi14 < 0 and EmaRsi < EmaRsi[1]
// ______________________________________________________ Conditions Achat ___________________________________________________
if Achat then
Drawcandle(open,high,low,close)coloured(0,255,0)
Drawtext("▴",barindex,low,dialog,bold,15) coloured(255,0,255)
endif
// ______________________________________________________ Conditions Vente ___________________________________________________
if Vente then
Drawcandle(open,high,low,close)coloured(255,0,0)
Drawtext("▾",barindex,high,dialog,bold,15) coloured(255,0,255)
endif
return RSI14 as "Rsi14", EmaRsi as "EmaRsi", Achat as "Achat", Vente as "Vente"