OPEN-SOURCE SCRIPT
EMA 9 vs EMA 150 Cross Indicator

//version=5
indicator("EMA 9 vs EMA 150 Cross Indicator", overlay=true)
// Input EMAs
shortEmaLen = input.int(9, title="Short EMA (Fast)")
longEmaLen = input.int(150, title="Long EMA (Slow)")
// Calculate EMAs
emaShort = ta.ema(close, shortEmaLen)
emaLong = ta.ema(close, longEmaLen)
// Detect Crosses
bullishCross = ta.crossover(emaShort, emaLong)
bearishCross = ta.crossunder(emaShort, emaLong)
// Plot EMAs
plot(emaShort, title="EMA 9", color=color.gray)
emaColor = emaShort > emaLong ? color.green : color.red
plot(emaLong, title="EMA 150", color=emaColor, linewidth=2)
// Plot Arrows
plotshape(bullishCross, title="Buy Signal", location=location.belowbar, color=color.green, style=shape.arrowup, size=size.small)
plotshape(bearishCross, title="Sell Signal", location=location.abovebar, color=color.red, style=shape.arrowdown, size=size.small)
indicator("EMA 9 vs EMA 150 Cross Indicator", overlay=true)
// Input EMAs
shortEmaLen = input.int(9, title="Short EMA (Fast)")
longEmaLen = input.int(150, title="Long EMA (Slow)")
// Calculate EMAs
emaShort = ta.ema(close, shortEmaLen)
emaLong = ta.ema(close, longEmaLen)
// Detect Crosses
bullishCross = ta.crossover(emaShort, emaLong)
bearishCross = ta.crossunder(emaShort, emaLong)
// Plot EMAs
plot(emaShort, title="EMA 9", color=color.gray)
emaColor = emaShort > emaLong ? color.green : color.red
plot(emaLong, title="EMA 150", color=emaColor, linewidth=2)
// Plot Arrows
plotshape(bullishCross, title="Buy Signal", location=location.belowbar, color=color.green, style=shape.arrowup, size=size.small)
plotshape(bearishCross, title="Sell Signal", location=location.abovebar, color=color.red, style=shape.arrowdown, size=size.small)
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.