AA:=IF(CLOSE<0,0,SUM(IF(CLOSE>REF(CLOSE,1) AND vol>REF(VOL,1),VOL,0),2));
BB:=IF(CLOSE<0,0,SUM(IF(CLOSEDD:=IF(CLOSE<0,0,AA-BB);
X0:=IF(CLOSE<0,0,IF(DD>0 AND (CLOSE/REF(CLOSE,1)-1)*100>0,AMOUNT/100,0));
X1:=IF(CLOSE<0,0,IF(DD<0 AND (CLOSE/REF(CLOSE,1)-1)*100<0,AMOUNT/100,0));
ddx:=IF(CLOSE<0,0,(X0-X1)/CAPITAL*CLOSE/100);
选股:=IF(CLOSE<0,0,DDX>=0 AND (CLOSE/REF(CLOSE,1)-1)*100>4);
买:选股;