OPEN-SOURCE SCRIPT

5, 10, 15, 20 SMA

61
//version=5
indicator("5, 10, 15, 20 SMA", overlay=true)

// 이평선 정의
sma5 = ta.sma(close, 5)
sma10 = ta.sma(close, 10)
sma15 = ta.sma(close, 15)
sma20 = ta.sma(close, 25)


// 차트에 표시
plot(sma5, color=color.red, linewidth=2, title="5 SMA")
plot(sma10, color=color.orange, linewidth=2, title="10 SMA")
plot(sma15, color=color.yellow, linewidth=2, title="15 SMA")
plot(sma20, color=color.green, linewidth=2, title="20 SMA")

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.