YA:=IF(C>=O,AMOUNT,0);
YAobv:=SUM(YA,0);
MOBV:=SUM(AMOUNT,0);
BL:=100*YaoBV/MOBV;
MABL3:=IF(BARSSINCE(C)>=3,MA(BL,3),50);
MABL30:=IF(BARSSINCE(C)>=30,MA(BL,30),MABL3);
X1:=crOSS(MABL3,MABL30);
X2:=COUNT(MABL30>MABL3,BArslAST(CROSS(MABL30,MABL3)))>30;
选股:X1 AND X2;