ZF:=100*(CLOSE/REF(CLOSE,1)-1);A:=BARSLAST(ZF>6);E:=REF(OPEN,A-1)<REF(CLOSE,A) AND REF(CLOSE,A-1)<REF(OPEN,A-1);XG:E AND REF(CLOSE,A)>=HHV(HIGH,A) AND A<=10;