SKDJ顶底背离的通达信代码分享

SKDJ顶底背离的通达信代码分享


SKDJ[_a1_]代码


LOWV:=LLV(LOW,9);

HIGHV:=HHV(HIGH,9);

RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,3);

K:EMA(RSV,3);

D:MA(K,3);


STICKLINE(K>D,K,D,2.5,0),COLORRED,LINETHICK1,NODRAW;

STICKLINE(D>K,K,D,2.5,0),COLORGREEN,LINETHICK1,NODRAW;


逃顶线:80,COLORWHITE;

抄底线:20,COLORWHITE;

高位谨慎减仓:80,COLORRED;



A1:=BARSLAST(REF(CROSS(K,D),1));

底背离:REF(CLOSE,A1+1)>CLOSE AND K>REF(K,A1+1) AND CROSS(K,D);

DRAWLINE(A1=0,D,底背离,D,0),COLORRED,LINETHICK2;

A2:=BARSLAST(REF(CROSS(D,K),1));

顶背离:REF(CLOSE,A2+1)<CLOSE AND REF(D,A2+1)>D AND CROSS(D,K);

DRAWLINE(A2=0,D,顶背离,D,0),COLORGREEN,LINETHICK2;

DRAWTEXT(底背离>0,D-5,'底背离'),COLORRED;

DRAWTEXT(顶背离>0,D-5,'顶背离'),COLORGREEN;


发表评论 取消回复

电子邮件地址不会被公开。 必填项已用*标注

有些内容是需要登录本网站才可以查看的,若是需要登录的话,欢迎加站长微信“laogong0311”,站长免费帮大家注册账号!

遇到问题?请给我们留言

请填写您的电话号码,我们将回复您电话