这是有效的代码:
plotshape(xvalue, location=location.absolute, style=shape.labeldown, color=red, size=size.tiny, text ="Upper")
这是不起作用的代码:
plotshape(xvalue, location=location.absolute, style=(label?shape.xcross:shape.labeldown), color=red, size=size.tiny, text ="Upper")
这里的变量“标签”是真/假变量。它编译没有错误,但它只是不绘图。
但是如果您在颜色上使用相同的逻辑,例如:
color=(label?blue:red)
它可以正常工作。
我是不是在任何地方都输入错误或逻辑错误,或者这是另一个松虫?