X_1:=ATAN((MA(CLOSE,5)/REF(MA(CLOSE,5),1)-1)*100)*57.299999;
X_2:=ATAN((MA(CLOSE,13)/REF(MA(CLOSE,13),1)-1)*100)*57.299999;
X_3:=ATAN((MA(CLOSE,20)/REF(MA(CLOSE,20),1)-1)*100)*57.299999;
X_4:=ATAN((MA(CLOSE,60)/REF(MA(CLOSE,60),1)-1)*100)*57.299999;
X_5:=X_1/50+X_2/40+X_3/21+X_4/10;
X_6:=CLOSE/REF(CLOSE,1)>1.098 AND CLOSE=HIGH AND OPEN<HIGH;
X_7:=X_6 AND NOT(REF(X_6,1)) AND REF(OPEN,1)<REF(HIGH,1);
X_8:=BARSLAST(X_7);
X_9:=CLOSE<REF(OPEN,X_8) AND X_8<4 AND X_8>1;
X_10:=BARSLAST(X_9);
X_11:=X_10<4 AND CLOSE>REF(OPEN,X_8) AND REF(HIGH,X_8-1)>REF(HIGH,X_8) AND REF(vol,X_8-1)>REF(VOL,X_8) AND X_5<7;
XG:FILTER(X_11,4);