Simple Moving Averages 50-150-200

yingpeng · study · 14 行 · 点赞 5 · TradingView 原页

本页源码来自 TradingView 公开发布的开源脚本,版权归原作者所有, 请遵循其原始许可(Pine 脚本常见 CC BY-NC-SA / MPL-2.0 / MIT)。 本项目仅用于研究检索与许可范围内的移植。

Pine Script

//@version=6
indicator("Simple Moving Averages 50-150-200", shorttitle="SMA (50, 150, 200)", overlay=true)
 
// outA = ta.sma(close, 7)
// outB = ta.sma(close, 30)
outC = ta.sma(close, 50)
outD = ta.sma(close, 150)
outE = ta.sma(close, 200)
 
// plot(outA, color=color.yellow, title="SMA(7)")
// plot(outB, color=color.fuchsia, title="SMA(30)")
plot(outC, color=color.lime, title="SMA(50)")
plot(outD, color=color.orange, title="SMA(150)")
plot(outE, color=color.red, title="SMA(200)")

← 返回列表