M13:=MA(CLOSE,13);
M55:=MA(CLOSE,55);
VAR1:=BARSLAST(crOSS(M13,CLOSE));
VAR2:=M55/MIN(CLOSE,OPEN);
VAR3:=M13/M55;
VAR4:=EVERY(VAR2<1.025,VAR1);
VAR5:=EVERY(VAR3<1.12,VAR1);
VAR7:=EVERY(M55>=REF(M55,1) AND M13>M55,VAR1+1);
VAR8:=COUNT(CROSS(C,M13),VAR1+1)=1 AND CROSS(C,M13);
VAR9:=VAR4 AND VAR5 AND VAR7 AND VAR8 AND BETWEEN(VAR1,5,10) AND VAR3<1.03;
XG:VAR9;