OPEN-SOURCE SCRIPT

5-8-13 MA Crossover Signals with Arrows (Short Term)

//version=5
indicator("5-8-13 MA Crossover Signals with Arrows", overlay=true)

// Hareketli ortalamaları tanımla
ma5 = ta.sma(close, 5)
ma8 = ta.sma(close, 8)
ma13 = ta.sma(close, 13)

// Kesişim noktalarını belirle
bullishCross = ta.crossover(ma5, ma13)
bearishCross = ta.crossunder(ma5, ma13)

// Yeşil ve kırmızı ok işaretlerini çiz
plotshape(series=bullishCross, location=location.belowbar, color=color.new(color.green, 0), style=shape.labelup, size=size.small, title="Bullish Crossover")
plotshape(series=bearishCross, location=location.abovebar, color=color.new(color.red, 0), style=shape.labeldown, size=size.small, title="Bearish Crossover")

// Hareketli ortalamaları çizin
plot(ma5, color=color.blue, title="5 MA")
plot(ma8, color=color.orange, title="8 MA")
plot(ma13, color=color.purple, title="13 MA")
Chart patternsSimple Moving Average (SMA)

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer