[英]Line wrapping for a long set of function values in Pine Script
我正在尝试换行,因为在一个屏幕上看不到所有内容太长了:
strategy.entry
("Long Continuation",
true, 1, when = FastMA < SlowMA and SlowMA > SlowMA[5] and ShortDiff <
ShortDiff[1]
and close[1] < _PercentAbove and close[1] > _PercentBelow)
它可以解包,但是当我包装它时,出现错误,“添加到图表操作失败,原因:第15行:输入'行尾没有行连续的语法错误”
我意识到我可以使用更好的代码来缩短它,但是我只是对Pine中的换行功能感到好奇,请在enter code here
如果要换行,下一行必须以一个或几个( 不同于4的倍数 )空格开头。
您的代码似乎有4个空格,这会导致错误。
以下代码应编译。
strategy.entry("Long Continuation",
true, 1,
when = FastMA < SlowMA and SlowMA > SlowMA[5] and
ShortDiff < ShortDiff[1] and close[1] < _PercentAbove and
close[1] > _PercentBelow)
它分别具有0、1、2、3、5个空格。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.