PineScript 一行只有一个变量是什么意思?
What does it mean when there is only one variable in a single line in PineScript?
当我阅读一些 PineScript 代码时,我遇到了这个:
pDir = 1
if array.size(zigzagpivots) >= 1
pDir := array.get(zigzagpivotdirs, 0)/
pDir := pDir % 2 == 0 ? pDir / 2 : pDir
pDir
最后一行只有一个变量。那么,PineScript中一行只有一个变量是什么意思呢?
它什么都不做。你可以去掉它,结果是一样的。
当我阅读一些 PineScript 代码时,我遇到了这个:
pDir = 1
if array.size(zigzagpivots) >= 1
pDir := array.get(zigzagpivotdirs, 0)/
pDir := pDir % 2 == 0 ? pDir / 2 : pDir
pDir
最后一行只有一个变量。那么,PineScript中一行只有一个变量是什么意思呢?
它什么都不做。你可以去掉它,结果是一样的。