优化MACD选股指标

DIFF:=EMA(CLOSE,12)-EMA(CLOSE,27);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) ANDCROSS(DIFF,DEA);
XG:COUNT(底背离,10)>=1 AND CROSS(MACD,0);

(0)

相关推荐