求教一个MACD高位回调至0轴的选股公式【已解答】

INPUT:P(26,20,100),S(12,5,40),M(9,2,60);
DIFF := EMA(CLOSE,S) - EMA(CLOSE,P);
DEA  := EMA(DIFF,M);
MACD := 2*(DIFF-DEA), COLORSTICK;
高位回调:DIFF>=REF(DIFF,1) AND DEA<0.1 AND DEA>=0 AND MACD<=0.05 AND MACD>=0 AND BARSLAST(MACD=HHV(MACD,10) AND MACD>0 AND LLV(MACD,10)>=0)>10 AND LLV(MACD,BARSLAST(MACD=HHV(MACD,10) AND MACD>0 AND LLV(MACD,10)>=0))>0,LINETHICK1;

初选之后再用目测过滤吧

(0)

相关推荐