语法错误输入"end of line without line continuation"


TDUp = TD - ta.valuewhen(TD < TD[1], TD, 1 )
plotshape(TDUp==7?true:na,style=shape.triangledown, color=color.red, 
text="7",
textcolor=color.red, location=location.abovebar)
plotshape(TDUp==8?true:na,style=shape.triangledown, color=color.red, 
text="8",
textcolor=color.red, location=location.abovebar)

表示第6行语法错误,即第一个photoshape单词

在代码第二行后添加空格

TDUp = TD - ta.valuewhen(TD < TD[1], TD, 1 )
plotshape(TDUp==7?true:na,style=shape.triangledown, color=color.red, 
text="7",
textcolor=color.red, location=location.abovebar)
plotshape(TDUp==8?true:na,style=shape.triangledown, color=color.red, 
text="8",
textcolor=color.red, location=location.abovebar)

相关内容

最新更新