VAR1:=Abs(CLOSE-REF(CLOSE,20));
VAR2:=SUM(ABS(CLOSE-REF(CLOSE,1)),20);
VAR3:=VAR1/VAR2;
VAR4:=VAR3*(0.8-2/8)+2/8;
VAR5:=DMA(CLOSE,VAR4*VAR4);
VAR6:=SUM(TR,20);
VAR7:=HHV(HIGH,20)-LLV(LOW,20);
VAR8:=VAR7/VAR6;
VAR9:=(VAR8/SUM(TR,20));
VAR10:=VAR9*CLOSE+(1-VAR9)*REF(VAR5,1);
VAR11:=EMA(VAR10,3);
VAR18:=crOSS(VAR5,VAR11) AND VAR11>REF(VAR11,1);
VAR16:=CROSS(CLOSE,VAR11) AND VAR5>REF(VAR5,1);
XG:VAR18 AND VAR16;