问题补充说明:DIFF顶背离底背离画线公式,DIFF拐点处背离的连线(和股价背离)
DIFF:EMA(CLOSE,12)-EMA(CLOSE,27);
DEA:EMA(DIFF,9)似知衡圆属孔脱先;
MACD:2*(DIFF-DEA),COLORSTICK,LINETHICK2;
A1:=BA照罪RSLAST(REF(CRO准武多够要胜送式SS(DIFF,DEA),1));
底背离:=REF(CLOSE,A1+1)>CLOSEANDDIFF>REF(DIFF,A1+1)ANDCROSS(DIFF,DEA);
DRAWLINE360问答(A1=0,DEA,底背离,DEA,0),COLORRED,LINETHICK4{底背};
A2:=BARSLAST(REF(CROSS(DEA,DIFF)出帮固问初案开,1));
顶背离:=REF(CLOSE,A2+1)
DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORGREEN,LI裂现半够矿飞困由NETHICK4{顶背};