第168行:输入时的语法错误,无线延续;。
我正在尝试在TradingView中创建加密货币交易策略,直到我的脚本决定升级到V5之前,一切都很好。一切都起作用,但是当我添加这两行时,我会收到上述错误。
没有额外的空间,tabstops或其他任何东西,我感到非常困惑和烦恼。
线:
strategy.entry(id="Enter Long", strategy.long, when=LongOpenConditions)
strategy.entry(id="Enter Short", strategy.short, when=ShortOpenConditions)
I'm trying to create a crypto trading strategy in TradingView, and everything was going well until my script decided to upgrade to v5. Everything works, but when I add these two lines, I get the above error.
There are no extra spaces, tabstops or anything else and I am very confused and irritated.
Lines:
strategy.entry(id="Enter Long", strategy.long, when=LongOpenConditions)
strategy.entry(id="Enter Short", strategy.short, when=ShortOpenConditions)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
好吧,事实证明“ id =”不应该在那里。它扔了错误的错误。问题解决了。
Okay, turns out "id=" wasn't supposed to be there. It threw the wrong error. Problem solved.
如果您在函数调用中开始使用参数名称,则必须在此之后继续使用其他参数的名称。
以下所有内容都应罚款。
If you start using argument names in the function call, you must continue using other argument's names too after that point.
All below should compile fine.