我在使用 Pine Script 时遇到了 TradingView 的 'end of line without continuation' 错误,请问

I got TradingView's 'end of line without continuation' error with Pine Script, please

我得到 TradingView 的 'end of line without continuation' 错误与 Pine 脚本这一行:

如何使用此功能代码修复该错误?有人可以帮助我吗?

当您想要多行语句时,下一行应以一个或多个(不同于 4 的倍数)空格开头。 Source

从您的屏幕截图中我可以看出,您的行在第 24 行和第 25 行以 4 个空格的倍数开头。这就是为什么您不应该 post 您的代码作为屏幕截图。