VAR1:=MA(CLOSE,120);
VAR2:=MA(CLOSE,250);
VAR3:=ATAN((VAR1/REF(VAR1,1)-1)*100)*180/3.1416>=1;
VAR4:=ATAN((VAR2/REF(VAR2,1)-1)*100)*180/3.1416>=1;
VAR5:=DYNAINFO(17)!=0 AND NOT(NAMELIKE('S') OR NAMELIKE('*S'));
VAR6:=COUNT(L>MA(C,120),15)>=14 AND CROSS(MA(C,120),L) AND C>VAR1;
VAR7:=COUNT(L>MA(C,250),15)>=14 AND CROSS(MA(C,250),L) AND C>VAR2;
VAR8:=NOT(CLOSE
VAR9:=VAR3 AND VAR4 AND VAR5 AND VAR6 AND VAR8;
VAR10:=VAR3 AND VAR4 AND VAR5 AND VAR7 AND VAR8;
XG:VAR9 OR VAR10;