OPEN-SOURCE SCRIPT
Renkli EMA ve Ok Sinyali by incebacak

//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)
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)
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.