DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
macd:=(DIF-DEA)*2;
boll:=MA(CLOSE,20);
UPPER:=BOLL+2*STD(CLOSE,20);
LOWER:=BOLL-2*STD(CLOSE,20);
K1:=CLOSE>OPEN ;
K2:=vol>=2*REF(VOL,1);
K3:=crOSS(DIF,DEA) AND DIF<=0 ;
K4:=CROSS(CLOSE,BOLL);
选股:K1 AND K2 AND K3 AND K4 ;