128
//version=6
indicator("BIST Akıllı AL-SAT v1", overlay=true)

// Ayarlar
emaFastLen = input.int(20, "Hızlı EMA")
emaSlowLen = input.int(50, "Yavaş EMA")
rsiLen = input.int(14, "RSI Periyodu")
volLen = input.int(20, "Hacim Ortalaması")

// Hesaplamalar
emaFast = ta.ema(close, emaFastLen)
emaSlow = ta.ema(close, emaSlowLen)
rsiValue = ta.rsi(close, rsiLen)
volAvg = ta.sma(volume, volLen)

// Trend ve hacim
upTrend = emaFast > emaSlow and close > emaSlow
downTrend = emaFast < emaSlow
strongVolume = volume > volAvg

// AL ve SAT koşulları
buySignal = upTrend and ta.crossover(rsiValue, 50) and strongVolume
sellSignal = ta.crossunder(emaFast, emaSlow)

// Grafik
plot(emaFast, "EMA 20", color=color.green, linewidth=2)
plot(emaSlow, "EMA 50", color=color.orange, linewidth=2)

plotshape(buySignal, title="AL",
location=location.belowbar,
style=shape.labelup,
color=color.green,
text="AL",
textcolor=color.white)

plotshape(sellSignal, title="SAT",
location=location.abovebar,
style=shape.labeldown,
color=color.red,
text="SAT",
textcolor=color.white)

// Alarm koşulları
alertcondition(buySignal, title="AL Alarmı",
message="AL sinyali oluştu.")

alertcondition(sellSignal, title="SAT Alarmı",
message="SAT sinyali oluştu.")

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.