X_1:=100*(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21));
X_2:=CLOSE>EMA(CLOSE,5) AND CLOSE>EMA(CLOSE,10) AND CLOSE>EMA(CLOSE,13) AND CLOSE>EMA(CLOSE,21) AND CLOSE>EMA(CLOSE,55) AND CLOSE>EMA(CLOSE,70);
X_3:=BArslAST(X_1>85)<=15 AND vol>EMA(CLOSE,10) AND X_1<55;
{EMA(CLOSE,10);
EMA(CLOSE,13);}
X_4:=crOSS(EMA(CLOSE,5),EMA(CLOSE,21)) AND BARSLAST(X_1<=15)<30;
X_5:=CLOSE>EMA(CLOSE,120) AND CLOSE/REF(CLOSE,1)>1.04;
X_6:=IF(NAMELIKE(1),0,1) AND IF(NAMELIKE(2),0,1);
X_7:=DYNAINFO(4)>5 AND DYNAINFO(4)<40;
X_8:=BARSLAST(MA(VOL,5)>MA(VOL,70))>=5 AND VOL>=MA(VOL,5);
XG:X_1 AND X_2 AND X_6 AND X_7 AND X_3 AND X_4 AND X_5 AND X_8;