VAR1:=IF((CLOSE-REF(CLOSE,1))*100/REF(CLOSE,1)>=9.9,1,0); XG:EVERY(VAR1,2) AND BARSCOUNT(CLOSE)>30 AND REF(CLOSE,2)!=REF(HIGH,2);