mardi 26 janvier 2021

if Syntax in pine script

I'm new to pinescript and I can't figure out what's wrong with my if syntax. Please help

//@version=4

strategy(title="Weighted Moving ATR", shorttitle="WMATR Stra Test", overlay = true)

//Changing inputs based on ticker
if (syminfo.ticker == "AAPL")
     LenWATR = 43
     MultWATR = 1
else if (syminfo.ticker == "AAL")
     LenWATR = 21
     MultWATR = 1

I keep getting line 13: Mismatched input 'LenWATR' expecting 'end of line without line continuation'.

Aucun commentaire:

Enregistrer un commentaire