通达信零轴下MACD两次金叉选股(底背离)
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
底背离选股:REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);
送CCI指标
TYP:=(HIGH+LOW+CLOSE)/3;
CCI5:(TYP-MA(TYP,5))/(0.015*AVEDEV(TYP,5));
CCI10:(TYP-MA(TYP,10))/(0.015*AVEDEV(TYP,10));
CCI20:(TYP-MA(TYP,20))/(0.015*AVEDEV(TYP,20));