//version=5
indicator("Bollinger Bands + RSI Scalping Strategy", overlay=true)

// Bollinger Bands Ayarları
bb_length = input.int(20, title="Bollinger Bands Length")
bb_stddev = input.float(2.0, title="Bollinger Bands Std Dev")
[bb_upper, bb_basis, bb_lower] = ta.bb(close, bb_length, bb_stddev)

// RSI Ayarları
rsi_length = input.int(14, title="RSI Length")
rsi_overbought = input.int(70, title="RSI Overbought Level")
rsi_oversold = input.int(30, title="RSI Oversold Level")
rsi = ta.rsi(close, rsi_length)

// Al/Sat Sinyalleri
buySignal = (close < bb_lower and ta.crossover(rsi, rsi_oversold))
sellSignal = (close > bb_upper and ta.crossunder(rsi, rsi_overbought))

// İşlem Etiketleri
plotshape(buySignal, style=shape.labelup, color=color.new(color.green, 0), size=size.small, title="Buy Signal", location=location.belowbar)
plotshape(sellSignal, style=shape.labeldown, color=color.new(color.red, 0), size=size.small, title="Sell Signal", location=location.abovebar)

// Bollinger Bands Çizgileri
plot(bb_upper, color=color.new(color.blue, 0), title="Upper Band")
plot(bb_basis, color=color.new(color.gray, 50), title="Middle Band")
plot(bb_lower, color=color.new(color.blue, 0), title="Lower Band")

// Highlight Bölge (Fiyat Bollinger Bands dışına çıktığında)
bgcolor(close < bb_lower ? color.new(color.green, 90) : close > bb_upper ? color.new(color.red, 90) : na)

// Alertler
alertcondition(buySignal, title="Buy Signal Alert", message="Buy Signal Detected!")
alertcondition(sellSignal, title="Sell Signal Alert", message="Sell Signal Detected!")
Trend Analysis

Disclaimer