{底背离}
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA);
A2:=BARSLAST(REF(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),1));
B2:=REF(C,A2+1)>C AND REF("KDJ.K"(9,3,3),A2+1)<"KDJ.K"(9,3,3) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));
A3:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));
倍数:=1.9;
倍量阳:=REF(V>倍数*REF(V,1) AND C>REF(C,1),3);{基柱}
价升量缩:= MA(C,3)>=REF(C,3) AND HHV(VOL,3)<=REF(VOL,3);
连阳:= COUNT(C>=O OR C>=REF(C,1),4)=4;
选股: 倍量阳 AND 价升量缩 AND 连阳;