can anyone help me why this code is not running

Can anyone help me understand why this code is not working. Every time I try to run this code, I get an error message saying “argument of function “IF” not optional”.The code is as given below.Untitled

SET A=IF(CROSSOVER(LAST,KCT(15,EXPONENTIAL,1.2))=TRUE,1,0)
SET B=IF(HIGH>REF(HIGH,1),1,0)