VALUE_A:=MAX(CLOSE,OPEN);VALUE_B:=(HIGH-VALUE_A)/VALUE_A*100>0;VALUE_C:=OPEN>REF(VALUE_A,1);VALUE_D:REF(VALUE_B,1) AND VALUE_C;