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精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?

免责声明