X_1:=OPEN<MA(CLOSE,5) AND OPEN<MA(CLOSE,10) AND OPEN<MA(CLOSE,20) AND CLOSE>MA(CLOSE,5) AND CLOSE>MA(CLOSE,10) AND CLOSE>MA(CLOSE,20);
X_2:=OPEN<MA(CLOSE,5) AND OPEN<MA(CLOSE,10) AND OPEN<MA(CLOSE,30) AND CLOSE>MA(CLOSE,5) AND CLOSE>MA(CLOSE,10) AND CLOSE>MA(CLOSE,30);
X_3:=MA(CLOSE,5)>MA(CLOSE,10) AND MA(CLOSE,10)>MA(CLOSE,20) AND MA(CLOSE,10)>MA(CLOSE,30) AND MA(CLOSE,30)>MA(CLOSE,60);
X_4:=NOT(crOSS(MA(CLOSE,10),MA(CLOSE,5)) OR CROSS(MA(CLOSE,30),MA(CLOSE,20)) OR CROSS(MA(CLOSE,50),MA(CLOSE,10)) OR CROSS(MA(CLOSE,10),MA(CLOSE,20)) OR CROSS(MA(CLOSE,10),MA(CLOSE,30)));
X_5:=CLOSE>OPEN AND CLOSE/REF(CLOSE,1)>1.02;
LCXG:X_1 OR X_2 AND X_3 AND X_4 AND X_5;