XD:=C-MA(C,7);
CD:=SUM(XD,21);
VAR1:=AMOUNT/vol/7;
VAR2:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;
VAR3:=SUM(AMOUNT,10)/VAR1/7;
VAR4:=DMA(VAR2,VOL/VAR3);
LZ:=(CLOSE-VAR4)/VAR4*100;
XG:crOSS(LZ>CD,0.5);
XD:=C-MA(C,7);
CD:=SUM(XD,21);
VAR1:=AMOUNT/vol/7;
VAR2:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;
VAR3:=SUM(AMOUNT,10)/VAR1/7;
VAR4:=DMA(VAR2,VOL/VAR3);
LZ:=(CLOSE-VAR4)/VAR4*100;
XG:crOSS(LZ>CD,0.5);