Untitled
user_5432013
plain_text
5 months ago
2.1 kB
37
Indexable
//@version=5 indicator("EMA & Kinjun Göstergeleri", overlay=true) // İndikatör ve timeframe ayarları tek satırda // emaFast_tf = input.string("1W", "EMA 8 Timeframe", options=["", "1", "3", "5", "15", "30", "45", "60", "120", "180", "240", "1D", "1W", "1M"], inline="ema8") emaFast_tf = input.timeframe("1W", "EMA 8 Timeframe", inline="ema8") emaFastLength = input.int(8, "Periyot", inline="ema8") ema8Color = input.color(color.green, "Renk", inline="ema8") // emaSlow_tf = input.string("1W", "EMA 14 Timeframe", options=["", "1", "3", "5", "15", "30", "45", "60", "120", "180", "240", "1D", "1W", "1M"], inline="ema14") emaSlow_tf = input.timeframe("1W", "EMA 14 Timeframe", inline="ema14") emaSlowLength = input.int(14, "Periyot", inline="ema14") ema14Color = input.color(color.orange, "Renk", inline="ema14") // kijun_tf = input.string("1W", "Kijun Timeframe", options=["", "1", "3", "5", "15", "30", "45", "60", "120", "180", "240", "1D", "1W", "1M"], inline="kijun") kijun_tf = input.timeframe("1W", "Kijun Timeframe", inline="kijun") kijunPeriod = input.int(26, "Periyot", inline="kijun") kijunColor = input.color(color.purple, "Renk", inline="kijun") ghostColor = input.color(color.green, "Ghost Çizgi Rengi") // Zaman dilimi fonksiyonu // getTimeFrame(timeFrame) => // timeFrame == "" ? timeframe.period : timeFrame // EMA hesaplamaları ema8 = request.security(syminfo.tickerid, emaFast_tf, ta.ema(close, emaFastLength), barmerge.gaps_off) ema14 = request.security(syminfo.tickerid, emaSlow_tf, ta.ema(close, emaSlowLength), barmerge.gaps_off) // Kijun hesaplaması kijun = request.security(syminfo.tickerid, kijun_tf, math.avg(ta.lowest(low, kijunPeriod), ta.highest(high, kijunPeriod)), barmerge.gaps_off) // EMA Ghost hesaplaması emaGhost = ema8 * 1.14 // Çizgilerin çizilmesi plot(ema8, "EMA 8", color=ema8Color, linewidth=2) plot(ema14, "EMA 14", color=ema14Color, linewidth=2) plot(kijun, "Kijun", color=kijunColor, linewidth=2) plot(emaGhost, "EMA Ghost", color=ghostColor, linewidth=2, style=plot.style_circles)
Editor is loading...
Leave a Comment