ZT:=(C/REF(C,1)>1.095 OR C/REF(C,1)>2.095) AND C=H;
DIFF:EMA(CLOSE,12) - EMA(CLOSE,25);
DEA:EMA(DIFF,9);
macd:2*(DIFF-DEA), COLORSTICK;
J1:=0.7*(26-12)/2*EMA((C-REF(C,1)),12);
J2:EMA(EMA(J1,3),3);
J3:EMA(J1,3);
A2:=BArslAST(REF(crOSS(J2,J3),1));
顶背离:=REF(CLOSE,A2+1)
DRAWTEXT(顶背离,DIFF,' 顶背游'),COLORGREEN;
A3:=BARSLAST(REF(CROSS(DEA,DIFF),1));
顶背离J:=REF(CLOSE,A3+1)
DRAWTEXT(顶背离J,DIFF,' 顶背金'),COLORGREEN;
MD:=MacD>0;
UP5:=UPNDAY(MACD,4) AND COUNT(MD,4)=4;
TD:=COUNT(REF(UP5,1),2) AND CROSS(J2,J3) AND COUNT(MACD1;
DRAWTEXT(TD,J2,'减仓'),COLORGREEN;