// Paramètres du RSI rsi_length = 14 // Période du RSI rsi_overbought = 60 // Niveau RSI pour les ventes rsi_oversold = 35 // Niveau RSI pour les achats
// Calcul du RSI rsi = ta.rsi(close, rsi_length)
// Conditions pour les signaux d'achat et de vente buy_signal = (open[1] < lower_bb[1] and close[1] < lower_bb[1] and close > lower_bb and rsi < rsi_oversold) sell_signal = (open[1] > upper_bb[1] and close[1] > upper_bb[1] and close < upper_bb and rsi > rsi_overbought)
// Afficher les signaux UNIQUEMENT si la condition RSI est respectée plotshape(buy_signal, style=shape.triangleup, location=location.belowbar, color=color.green, size=size.small, title="Achat") plotshape(sell_signal, style=shape.triangledown, location=location.abovebar, color=color.red, size=size.small, title="Vente")
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.