OPEN-SOURCE SCRIPT

Renkli EMA ve Ok Sinyali by incebacak

115
//version=5
indicator(, overlay=true)

//
emaLength = input.int(20, "EMA Periyodu")
emaColorUp = input.color(color.green, "EMA Yukarı Renk")
emaColorDown = input.color(color.red, "EMA Aşağı Renk")
barColorUp = input.color(color.new(color.green, 0), "Yukarı Mum Renk")
barColorDown = input.color(color.new(color.red, 0), "Aşağı Mum Renk")
emaThickness = input.int(3, "EMA Kalınlığı")

//
emaValue = ta.ema(close, emaLength)

//
emaRising = emaValue > emaValue[1]
emaFalling = emaValue < emaValue[1]
emaCol = emaRising ? emaColorUp : emaColorDown

plot(emaValue, color=emaCol, linewidth=emaThickness, title="EMA")

//
barcolor(close > emaValue ? barColorUp : barColorDown)

//
plotshape(ta.crossover(close, emaValue), title="Al Sinyali", location=location.belowbar, color=color.green, style=shape.triangleup, size=size.small)
plotshape(ta.crossunder(close, emaValue), title="Sat Sinyali", location=location.abovebar, color=color.red, style=shape.triangledown, size=size.small)

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.