0
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)

Says syntax error at line 6 which is the 1st photshape word

oper573
  • 11
  • 1
    Does this answer your question? [I got TradingView's 'end of line without continuation' error with Pine Script](https://stackoverflow.com/questions/51724359/i-got-tradingviews-end-of-line-without-continuation-error-with-pine-script) – Tangentially Perpendicular Jul 10 '22 at 01:41

1 Answers1

0

add spaces after using second line in code

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)