Good day evveryone, i trust your day is going well. please I need help solving this issue. i am trying to write tradingview indicators using chatgtp but I am getting this error in all I do. please how can I resolve this error
( Mismatched input "end of line without line continuation" expecting ")"
Majorly indicating error at the first bracket..
( 1 )
label.new(
bar_index - pivotLen,
pivotHigh,
text=lastStructureHigh,
style=label.style_labeldown,
color=color.orange,
textcolor=color.white,
size=size.small
)
( 2 )
label.new(bar_index - pivotLen, pivotHigh, structureHigh,
style=label.style_labeldown, color=color.orange, textcolor=color.white, size=size.small)
lastHigh := pivotHigh
lastStructureHigh := structureHigh
( Mismatched input "end of line without line continuation" expecting ")"
Majorly indicating error at the first bracket..
( 1 )
label.new(
bar_index - pivotLen,
pivotHigh,
text=lastStructureHigh,
style=label.style_labeldown,
color=color.orange,
textcolor=color.white,
size=size.small
)
( 2 )
label.new(bar_index - pivotLen, pivotHigh, structureHigh,
style=label.style_labeldown, color=color.orange, textcolor=color.white, size=size.small)
lastHigh := pivotHigh
lastStructureHigh := structureHigh