大智慧MACD顶底背离指标公式

INPUT:SHORT(12),LONG(26),M(9),N(55);

DIFF:EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);

DEA:EMA(DIFF,M);

macd:2*(DIFF-DEA), COLORstICK;

{指标网-股票公式网站 www.zhibiaow.com}

底背离:LLV(L,N)=L AND NOT(LLV(MacD,N)=MACD);

顶背离:HHV(H,N)=H AND NOT(HHV(MACD,N)=MACD);