AA:=HIGH>REF(HIGH,1) and REF(HIGH,2)>REF(high,1) and LOW>REF(LOW,1)and REF(LOW,2)>REF(LOW,1)and MA(CLOSE,5)<MA(close,10);B:IF(AA,1,0);