Reputation: 502
I have this pine3 Trading view script which I converted to pine 4 using the TV converter .
however when I execute it after the conversion, I receive this error
line 110: Variable 'results' was declared with 'series[integer]' type. Cannot assign it expression of type 'series[float]'.
how to fix this ?
Upvotes: 0
Views: 105
Reputation: 8789
For line 104, use this to declare the "float" explicitly:
float results = 0 + bar_index //tv series spoofing
You can then safely ignore the compiler warning on line 78:
Upvotes: 1