在线检测未来函数

通达信金兰MACD背离指标公式

来源:Internet,编辑:股旁网,2023-03-24

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)<CLOSE AND REF(J2,A2+1)>J3 AND CROSS(J2,J3) AND COUNT(ZT,30)>1;
DRAWTEXT(顶背离,DIFF,' 顶背游'),COLORGREEN;
A3:=BARSLAST(REF(CROSS(DEA,DIFF),1));
顶背离J:=REF(CLOSE,A3+1)<CLOSE AND REF(DIFF,A3+1)>DIFF AND CROSS(DEA,DIFF) AND COUNT(ZT,30)>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(MACD<REF(MACD,1),2) AND COUNT(ZT,30)>1;
DRAWTEXT(TD,J2,'减仓'),COLORGREEN;

通达信金兰MACD背离指标公式

相关文章