//@version=6 indicator("RSI Reentry Signals Volume Filter", overlay=false) //==================================================== // PARAMÈTRES //==================================================== rsiLength = input.int(14, title="RSI Length") //==================================================== // RSI //==================================================== rsiValue = ta.rsi(close, rsiLength) //==================================================== // NIVEAUX RSI //==================================================== upperLevel = 70 lowerLevel = 30 //==================================================== // FILTRE VOLUME //==================================================== volumeStrong = volume > ta.sma(volume, 20) //==================================================== // AFFICHAGE RSI //==================================================== plot( rsiValue, title = "RSI", linewidth = 2, color = color.white) h70 = hline( upperLevel, "70", color = color.red) h30 = hline( lowerLevel, "30", color = color.green) fill( h70, h30, color = color.new(color.purple, 85)) //==================================================== // CONDITIONS BUY / SELL //==================================================== // BUY = RSI repasse au-dessus de 30 buySignal = rsiValue > lowerLevel and rsiValue[1] <= lowerLevel and volumeStrong // SELL = RSI repasse sous 70 sellSignal = rsiValue < upperLevel and rsiValue[1] >= upperLevel and volumeStrong //==================================================== // FLÈCHES //==================================================== plotshape( buySignal, title = "BUY", style = shape.arrowup, location = location.bottom, color = color.lime, size = size.small, text = "BUY") plotshape( sellSignal, title = "SELL", style = shape.arrowdown, location = location.top, color = color.red, size = size.small, text = "SELL") //==================================================== // ALERTES //==================================================== alertcondition( buySignal, title = "BUY Alert", message = "RSI repasse au-dessus de 30 avec volume fort") alertcondition( sellSignal, title = "SELL Alert", message = "RSI repasse sous 70 avec volume fort")