RSI1:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),56,1)/SMA(ABS(CLOSE-LC),56,1)*100;
VAR1:=CROSS(RSI1,RSI2) AND REF(EVERY(RSI2>RSI1,10),1);
EXP1:=EMA(CLOSE,5);
EXP2:=EMA(CLOSE,29);
VAR2:=CROSS(EXP1,EXP2) AND REF(EVERY(EXP2>EXP1,10),1);
AA:=MA(V,8);
BB:=MA(V,89);
VAR3:=CROSS(AA,BB) AND C>O AND V>REF(LLV(V,10),1);
WR1:=100*(HHV(HIGH,42)-CLOSE)/(HHV(HIGH,42)-LLV(LOW,42));
VAR4:=EVERY(WR1MID:=REF(HIGH+LOW,1)/2;
CR:=SUM(MAX(0,HIGH-MID),26)/SUM(MAX(0,MID-LOW),26)*100;
MA1:=REF(MA(CR,11),11/2.5+1);
MA2:=REF(MA(CR,19),19/2.5+1);
MA3:=REF(MA(CR,35),35/2.5+1);
MA4:=REF(MA(CR,53),53/2.5+1);
VAR5:=CROSS(CR,MA1) OR CROSS(CR,MA2) OR CROSS(CR,MA3) OR CROSS(CR,MA4);
XG:COUNT(VAR1,5)>=1 AND COUNT(VAR2,5)>=1 AND COUNT(VAR3,5)>=1 AND COUNT(VAR4,5)>=1 AND COUNT(VAR5,5)>=1;