Untitled
//@version=6 indicator('KOMPOZIT MUM XU100', overlay = false) // Giriş Değerleri s2 = input.symbol(title = 'XU100', defval = 'XU100') // Fonksiyon Tanımı f() => [open, high, low, close] // Güvenlik Verileri [o1, h1, l1, c1] = request.security(syminfo.tickerid, timeframe.period, f()) [o2, h2, l2, c2] = request.security(s2, timeframe.period, f()) // Bar Rengi Mantığı ema12 = ta.ema(c1 / c2, 34) ema26 = ta.ema(c1 / c2, 55) barColor = c1 / c2 >= ema26 ? color.new(#06bf65, 0) : color.new(#e44343, 0) // Mum Çizimi plotcandle(o1 / o2, h1 / h2, l1 / l2, c1 / c2, color = barColor, wickcolor = barColor, bordercolor = barColor) // USDTRY ve EMA'lar USDTRY = request.security('XU100', timeframe.period, close) // compEmaLength34 = input.int(34, title = 'KOM EMA 34') // compEmaLength55 = input.int(55, title = 'KOM EMA 55') // compEmaLength115 = input.int(115, title = 'KOM EMA 115') // compEmaLength233 = input.int(233, title = 'KOM EMA 233') // compEmaLength610 = input.int(610, title = 'KOM EMA 610') // EMA Hesaplama (SAĞ TARAF İÇİN DÜZENLENDİ) // ema34 = ta.ema(c1 / c2, 34) // ema55 = ta.ema(c1 / c2, 55) ema1597 = ta.ema(c1 / c2, 1597) ema144 = ta.ema(c1 / c2, 144) ema233 = ta.ema(c1 / c2, 233) ema377 = ta.ema(c1 / c2, 377) ema610 = ta.ema(c1 / c2, 610) ema987 = ta.ema(c1 / c2, 987) ema34 = ta.ema(c1 / c2, 34) ema55 = ta.ema(c1 / c2, 55) ema89 = ta.ema(c1 / c2, 89) // EMA Çizdirme plot(ema34, title = 'EMA 34', color = color.red, linewidth = 2) plot(ema55, title = 'EMA 55', color = color.orange, linewidth = 2) plot(ema89, title = 'EMA 89', color = #126f4f, linewidth = 2) plot(ema144, title = 'EMA 144', color = color.white, linewidth = 2) plot(ema233, title = 'EMA 233', color = color.rgb(140, 27, 150), linewidth = 2) plot(ema377, title = 'EMA 377', color = color.blue, linewidth = 2) plot(ema610, title = 'EMA 610', color = color.gray, linewidth = 2) plot(ema987, title = 'EMA 987', color = #79b027, linewidth = 2) plot(ema1597, title = 'EMA 1597', color = color.maroon, linewidth = 2)
Leave a Comment