ERROR: Add to Chart operation failed, reason: line 15: no viable alternative at input 'if'. Try to add line '//@version=2' to the top of your script
Processing script..
vito261
⋅
@gabrielomana, Weird, it works for me, can you copy paste code to a new script ?
Processing script..