The reason you're getting the error is because the indentation is wrong.
You're indenting with 5 whitespaces, but indententations should be a multiple of 4 whitespaces.
You could also write it like this:
//@version=4
strategy(title="Weighted Moving ATR", shorttitle="WMATR Stra Test", overlay = true)
var int LenWATR = na
var int MultWATR = na
//Changing inputs based on ticker
LenWATR := if syminfo.ticker == "AAPL"
43
else if syminfo.ticker == "AAL"
1
else
99 // default value
MultWATR := if syminfo.ticker == "AAL"
1
else if syminfo.ticker == "AAL"
1
else
77 // default value
//Changing inputs based on ticker: short version
LenWATR := syminfo.ticker == "AAPL" ? 43 : syminfo.ticker == "AAL" ? 1 : 99
MultWATR := syminfo.ticker == "AAPL" ? 1 : syminfo.ticker == "AAL" ? 1 : 77
plot(na)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…