MA1:=MA(CLOSE,60);
MA2:=MA(CLOSE,120);
MA3:=MA(CLOSE,250);
MA4:=MA(CLOSE,5);
MA5:=MA(CLOSE,10);
A:=count(all(C>O,2),10)>=1;
B:=COUNT(C/REF(C,1)>1.04,9)>=1;
D:=COUNT(all(O>C,2),3)=1;
E:=COUNT(C/REF(C,1)<0.97,3)=1;
F:=C>MA1 AND C>MA2 AND C>MA3 ;
G:=MA4>REF(MA4,1) AND all(MA5>REF(MA5,1),1) AND MA3>=REF(MA3,1)
AND MA2>=REF(MA2,1) AND MA1>=REF(MA1,1) ;
XG:C>O AND A AND B AND D AND E AND F AND G;