X_1:=EMA(WINNER(CLOSE)*70,3);
X_2:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);
X_3:=X_2/(X_1+X_2)*100;
X_4:=MA(X_1+X_2,13);
X_5:=X_1/(X_1+X_2)*100;
X_6:=IF(X_5-REF(X_5,1)>X_3-REF(X_3,1),1,0);
X_7:=EMA(X_5,89);
X_8:=CONST( X_4>REF(X_4,1) AND X_6=1);
X_9:=CONST( X_4>REF(X_4,1) AND X_6=0);
X_10:=CONST( X_4=REF(X_4,1));
X_11:=CONST( X_4< REF(X_4,1) AND X_6=1);
X_12:=CONST( X_4< REF(X_4,1) AND X_6=0);
X_13:=OPEN<CLOSE;
X_14:=OPEN/REF(CLOSE,1)<=0.97;
X_15:=CLOSE/OPEN>=1;
X_16:=CLOSE/OPEN>1.02;
X_17:=HIGH/LOW<CLOSE/OPEN<0.08;
XG:X_13 AND X_14 AND X_16 AND X_17;