问题补充说明:DIFF顶背离底背离画线公式,DIFF拐点处背离的连线(和股价背离)
DIFF脚例多承:EMA(CLOSE,12)-EMA(CLOSE钱陆望正,27);
DEA:EMA(DIFF,9);
MACD:2*(DIFF-DEA),COLORSTICK,LINETHICK2;
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
底背离:=REF(CLOSE,A1+1)>CLOS攻拿单刘EANDDIFF>REF(DIFF,A1+1)ANDCROSS(DIFF,DEA);
DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORRED,LINETHICK4{底背};
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
顶背离:=REF(CLOSE,A2+1)<CLOSEANDREF(DIFF,A2+1)>DIFFANDCROSS(DEA,DIF训认修物F);
DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORGREEN,LINETHICK4{顶背};
标签:MACD