DIFF:EMA(CLOSE,12)-EMA(CLOSE,27),COLORGREEN,DOTLINE;
DRAWBAND(0,RGB(55,86,100),DIFF,RGB(250,160,54));
DEA:EMA(DIFF,9),COLORRED,DOTLINE;
MACD:2*(DIFF-DEA),COLORSTICK;
零轴:0,DOTLINE;
XL1:=((LLV(LOW,3)=LLV(LOW,60)) AND ((CLOSE/REF(CLOSE,1)) =1.04));
DRAWTEXT(FILTER(((XL1 0) AND LOW),5),DIFF*0.975,'洼底'),COLORLIBLUE;
DIFF1:=EMA(CLOSE,12)-EMA(CLOSE,27);
DEA1:=EMA(DIFF1,9);
A1:=BARSLAST(REF(CROSS(DIFF1,DEA1),1));
底背离:=REF(CLOSE,A1+1) CLOSE AND DIFF1 REF(DIFF1,A1+1) AND CROSS(DIFF1,DEA1);
DRAWTEXT(底背离,DIFF*0.99,'底背离'),COLORMAGENTA;
顺上势:=DIFF1 =REF(DIFF1,1) AND MA(C,10) =REF(MA(C,10),1) AND DIFF
DRAWTEXT(顺上势,MACD*1.01,'★'),COLORMAGENTA;