TRADDINGVIEW INDICATORS

fedric

Junior Member
Joined
Jun 29, 2017
Messages
195
Reaction score
48
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
 

Attachments

  • XAUUSD-3-424-400-▼-−0-21-Unnamed-07-23-2025_03_36_AM.png
    XAUUSD-3-424-400-▼-−0-21-Unnamed-07-23-2025_03_36_AM.png
    80.4 KB · Views: 6
  • XAUUSD-3-425-235-▼-−0-18-Unnamed-07-23-2025_03_38_AM.png
    XAUUSD-3-425-235-▼-−0-18-Unnamed-07-23-2025_03_38_AM.png
    62 KB · Views: 6
Back
Top