我尝试用变量编写文本,但不能
aaaa = 121.150
bbbb = 120.100
target = "TP = " + ( aaaa * 0.9 ) + "\n SL = " + bbbb*1.01
plotshape(data , style=shape.triangledown,location=location.abovebar, color=red, text=target)
Run Code Online (Sandbox Code Playgroud)
我希望输出看起来像这样:
