[英]mismatched input 'if' expecting 'end of line without line continuation'
I'm having this "mismatched input 'if' expecting 'end of line without line continuation'" error in pinescript with the following block of code:我在 pinescript 中遇到这个“不匹配的输入‘if’期望‘没有行继续的行尾’”错误,代码块如下:
arrow(direction, bar, color) =>
if direction == "up"
plotchar(bar, high, "\u2191", color, size = size.normal)
else if direction == "down"
plotchar(bar, low, "\u2193", color, size = size.normal)
You cannot use plot*()
functions in a local loop.您不能在本地循环中使用
plot*()
函数。
You can apply your condition to the series
argument of your plot()
call as a workaround so it would conditionally plot.您可以将您的条件应用于
plot()
调用的series
参数作为解决方法,因此它有条件地为 plot。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.