OPEN-SOURCE SCRIPT

EMA COLOR CHANCE

124

indicator("Renk Değiştiren EMA & Mum Al-Sat", overlay=true)

emaLength = input.int(50, "EMA Periyodu", minval=1)

emaValue = ta.ema(close, emaLength)
trendUp = close > emaValue
trendDown = close < emaValue

plot(emaValue, title="EMA", color = (trendUp ? color.lime : color.red), linewidth=2)
barcolor(trendUp ? color.lime : color.red)

buySignal = ta.crossover(close, emaValue)
sellSignal = ta.crossunder(close, emaValue)

plotshape(buySignal, title="BuySignal", location=location.belowbar, style=shape.triangleup, size=size.large, color=color.lime)
plotshape(sellSignal, title="SellSignal", location=location.abovebar, style=shape.triangledown, size=size.large, color=color.red)


alertcondition(buySignal, title="AL Sinyali", message="AL sinyali - fiyat EMA'yı yukarı kesti")
alertcondition(sellSignal, title="SAT Sinyali", message="SAT sinyali - fiyat EMA'yı aşağı kesti")

免责声明

这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。