CC1:=IF(NAMELIKE('S')||NAMELIKE('*S')||CODELIKE('688'),0,1) AND DYNAINFO(4)>0;
CC2:=BARSCOUNT(C)>40;
VAR1:=REF(LOW,1);
VAR2:=SMA(Abs(LOW-VAR1),3,1)/SMA(MAX(LOW-VAR1,0),3,1)*100;
VAR3:=EMA(IF(CLOSE*1.3,VAR2*10,VAR2/10),3);
VAR4:=LLV(LOW,30);
VAR5:=HHV(VAR3,30);
VAR6:=IF(MA(CLOSE,58),1,0);
VAR7:=EMA(IF(LOW<=VAR4,(VAR3+VAR5*2)/2,0),3)/618*VAR6;
VAR8:=IF(VAR7>100,100,VAR7);
VAR9:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR10:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR11:=VAR9<REF(VAR10,1) AND vol>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
XG:(VAR11 AND COUNT(VAR11,18)=1) AND CC1 AND CC2;