Dorukbb

1 //version=5
indicator("9 EMA & 21 EMA Crossover + Ichimoku Bulutu", overlay=true)

// EMA'ların hesaplanması
ema9 = ta.ema(close, 9)
ema21 = ta.ema(close, 21)

// Ichimoku bulutu hesaplaması
tenkan = ta.sma(hl2, 9)
kijun = ta.sma(hl2, 26)
senkou_span_a = ta.sma(tenkan + kijun, 2)
senkou_span_b = ta.sma(ta.highest(high, 52) + ta.lowest(low, 52), 2)

// Al sinyali koşulları
ema_cross_up = ta.crossover(ema9, ema21)
above_cloud = close > senkou_span_a and close > senkou_span_b

buy_signal = ema_cross_up and above_cloud

// Grafik üzerine EMA'ları ve Ichimoku bulutunu çiz
plot(ema9, color=color.blue, title="9 EMA")
plot(ema21, color=color.red, title="21 EMA")

bgcolor(close > senkou_span_a and close > senkou_span_b ? color.new(color.green, 90) : na, title="Ichimoku Cloud Above Signal")

hline(senkou_span_a, "Senkou Span A", color=color.green, linewidth=1)
hline(senkou_span_b, "Senkou Span B", color=color.red, linewidth=1)

// Al sinyalini göster
plotshape(series=buy_signal, location=location.belowbar, color=color.green, style=shape.labelup, text="AL")

Feragatname