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)

開源腳本

在真正的TradingView精神中,這個腳本的作者以開源的方式發佈,這樣交易員可以理解和驗證它。請向作者致敬!您可以免費使用它,但在出版物中再次使用這段程式碼將受到網站規則的約束。 您可以收藏它以在圖表上使用。

想在圖表上使用此腳本?

免責聲明