SET A = Fn(CLOSE,30)
SET B = Fn(CLOSE,10)
SET Bottom = BBB(CLOSE, 30, 3, EXPONENTIAL)
SET Top = BBT(CLOSE, 30, 3, EXPONENTIAL)
SET X = IF(A > Top AND B > Top, 1 , -1)
I am constantly getting error “Argument of IF not optional”. What is the possible cause as script seems to be fine wrt to syntax?