简体   繁体   English

不匹配的输入“如果”期望“没有行继续的行尾”

[英]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.

相关问题 不匹配的输入“没有行延续的行尾”期望“_” - Mismatched input 'end of line without line continuation' expecting '_' 输入不匹配'...'期望'行尾没有续行' - Mismatched input '...' Expecting 'end of line without line continuation' Pine 脚本输入不匹配,期待“行尾没有续行” - Pine Script mismatched input, expecting 'end of line without line continuation' 不匹配的输入“情节”期望“没有行继续的行尾” - Mismatched input 'plot' expecting 'end of line without line continuation' PINESCRIPT 错误:不匹配的输入“=”期望“没有行继续的行尾” - PINESCRIPT ERROR: mismatched input '=' expecting 'end of line without line continuation' 不匹配的输入“到”期望“行尾没有续行” - Mismatched input 'to' expecting 'end of line without line continuation' 不匹配的输入“=”期望“行尾没有续行”(PS5) - Mismatched input '=' expecting 'end of line without line continuation' (PS5) 错误 If Else Mismatched input 'if' expecting 'end of line without line continuation' - Error If Else Mismatched input 'if' expecting 'end of line without line continuation' 我不能运行这个,第 39 行:不匹配的输入 'stopLossLongSaved' 期望 '行尾没有续行 - I cant run this, line 39: Mismatched input 'stopLossLongSaved' expecting 'end of line without line continuation 第 11 行:不匹配的输入“stopValue”期望“行尾没有续行” - line 11: Mismatched input 'stopValue' expecting 'end of line without line continuation'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM