VAR1:=ma(CLOSE,20);
VAR2:=CLOSE>MA(CLOSE,5);
VAR3:=MA(CLOSE,5)>MA(CLOSE,10);
VAR4:=CLOSE>MA(CLOSE,10);
VAR5:=MA(CLOSE,5)>MA(CLOSE,20);
VAR6:=CLOSE>MA(CLOSE,20);
VAR7:=REF(VAR1,1);
VAR8:=VAR1>VAR7;
VAR9:=IF(VAR2,10,0-10)+IF(VAR3,10,0-10)+IF(VAR4,10,0-10)+IF(VAR5,10,0-10)+IF(VAR6,10,0-10)+IF(VAR8,10,0-10);
VAR10:=MA((CLOSE-LLV(LOW,48))/(HHV(HIGH,48)-LLV(LOW,48))*50,17)+9;
VAR11:=MA(VAR10,7)*1.372;
VAR12:=CLOSE>MA(LOW,20)*1.1;
VAR13:=FInaNCE(7)<10000000000;
VAR14:=IF(NAMELIKE(6),0,1);
VAR15:=IF(NAMELIKE(7),0,1);
VAR16:=REF(CLOSE,1)<55;
VAR17:=REF(CLOSE,1)>5;
VAR18:=DYNAINFO(17)>1;
VAR19:=VAR13 AND VAR14 AND VAR15 AND VAR16 AND VAR17;
VAR20:=vol/MA(VOL,60)>1 AND CLOSE>OPEN;
VAR21:=DYNAINFO(14)<0.05 AND CLOSE>REF(CLOSE,1);
XG4:VAR9>40 AND VAR12 AND REF(VAR12=0,1) AND VAR19 AND VAR18 AND VAR20 AND REF(VAR11<50,6) AND VAR21;