Moving Average 50/200 Golden Cross

rbreve · study · 11 行 · 点赞 551 · TradingView 原页

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

Pine Script

//@version=3
study(title="Moving Average 50/200 Golden Cross", shorttitle="MA", overlay=true)
len = input(50, minval=1, title="Length")
src = input(close, title="Source")
out = sma(src, len)
plot(out, color=red, title="MA")
 
len2 = input(200, minval=1, title="Length")
src2 = input(close, title="Source")
out2 = sma(src2, len2)
plot(out2, color=green, title="MA")

← 返回列表