N:=12;M:=6;
快线:(CLOSE-REF(CLOSE,N))COLORRED,DOTLINE;
慢线:(MA(mtm,M))COLORGREEN,DOTLINE;
指导值:快线-慢线,COLORWHITE,LINETHICK2;
中轴:0,COLORBLUE;
A1:=BArslAST(REF(crOSS(快线,慢线),1));
底背离:IF(REF(CLOSE,A1+1)>CLOSE AND 快线>REF(快线,A1+1) AND CROSS(快线,慢线),3333,0),COLORRED,NODRAW;
{- }
A2:=BARSLAST(REF(CROSS(慢线,快线),1));
顶背离:IF(REF(CLOSE,A2+1)
强势:IF(快线>=慢线,快线,DRAWNULL),COLORRED,NODRAW;