如何从不同时间段绘制EMA? pinescript
我不确定为什么此代码不起作用并绘制5分钟图HMA HMA 49。 第13行:输入'5'的语法错误。 我很难过吗?
任何帮助将不胜感激!
预先感谢
Paul
//获得价值观
hma49 = hma(close,49)
hma9 = hma(close,9)
ema9 = ema(close,9)
5minhma49 = security(syminfo.ticker,5, hma(close,49))
t = tickerid(syminfo.prefix, syminfo.ticker)
I am unsure as to why this code does not work to reference and plot a 5min chart HMA 49. keep getting
line 13: Syntax error at input '5'.
I am stumped?
any help would be greatly appreciated!
Thanks in advance,
Paul
//Get Values
hma49 = hma(close,49)
hma9 = hma(close,9)
ema9 = ema(close,9)
5minhma49 = security(syminfo.ticker,5, hma(close,49))
t = tickerid(syminfo.prefix, syminfo.ticker)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您不能用数字启动变量名。
请参阅参考手册 dissinefiers
您可以更改<<<<<<<<<<<<<<<<<<<代码> 5minhma49 to
min5hma49
,以使其正确编译。You cannot start a variable name with a digit.
See reference manual Identifiers
You could change
5minhma49
tomin5hma49
for example, to make it compile properly.