返璞归真MACD之背离选股指标公式

DIFF :=(EMA(CLOSE,12)-EMA(CLOSE,26))*100/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);