Im confused about the handling of the WillR indicator. I successfully used the rising/falling function with Bollinger Bands, but I don't find my syntax error in here:
vars WillR = series(); //I'm trying to make WillR a series. Didn't work with "rising WillR(240)" either.
var UpperZone = optimize (8,0,20,1);
var LowerZone = optimize (8,0,20,1);
if(NumOpenLong+NumOpenShort < 2){
if rising(WillR(240)) and if (WillR(240)>(0-UpperZone)) // <-first syntax error
enterShort();
else if falling (WillR(240)) and if (WillR(240)<(-100+LowerZone))
enterLong();
What am I doing wrong here???