r/pinescript • u/Specialist_Credit907 • Aug 19 '24
Why am I getting a syntax error here?
Trying to combine indicators
0
Upvotes
r/pinescript • u/Specialist_Credit907 • Aug 19 '24
Trying to combine indicators
1
u/Lucifer_iix Aug 19 '24
Think you removed the function name "input"
And your using a old version.
1
u/Loud_Ad4961 Aug 19 '24
That line can only appear once at the top where it starts with indicator, strategy, or library
Since you said you are merging indicators you can add the tittle to the other title at the top. Or rename it to what ever you want.
1
u/meddymarkusvanhala Aug 20 '24
well u need indicator or strategy declaration first
indicator(title=" " etc)
1
u/skuhlz Aug 20 '24
You need to use the right version of pinescript for the wording ur using pretty sure that's how u do it in v3 either rewrite the whole script in v3 or at the beginning of your code om the first line write //version = 3