通达信指标公式源码概况:

指标类别: 通达信指标公式

授权方式: 免费版

指标评级: ★★★★★

指标分类: 策略

画线方法: 副图

以下是通达信KDJ超牛预判副图指标公式源码  

{KDJ超牛副图指标}  

N:=9;  

P1:=3;  

P2:=3;  

RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;  

K:SMA(RSV,P1,1),COLORCYAN;  

D:SMA(K,P2,1),COLOR00DD00;  

J:3*K-2*D,COLORRED;  

周K:="KDJ.K#WEEK"(9,3,2);  

周D:="KDJ.D#WEEK"(9,3,2);  

周J:="KDJ.J#WEEK"(9,3,2);  

金叉:=CROSS(周K,周D);  

日金叉:=FILTER(CROSS(K,D)ANDK<20,4);  

DRAWTEXT(周金叉,D,'★'),COLORYELLOW;  

DRAWTEXT(周金叉,D*0.93,'周金叉'),COLORYELLOW;  

DRAWTEXT(CROSS(周D,周K),D*0.95,'周死叉'),COLOR00DDBB;  

DRAWICON(日金叉,K,1);  

DRAWTEXT(日金叉,D,'低金'),COLOR00CCCC;  

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

KDDB:=REF(CLOSE,KDB+1)>CLOSEANDREF(K,KDB+1)<KANDCROSS(K,D);  

K底背:=IF(FILTER(KDDB>0,5),1,0);  

DRAWTEXT(K底背=1,D*0.98,'底背'),COLORRED;  

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

K顶背:=REF(CLOSE,KDD+1)KANDCROSS(D,K);  

DRAWTEXT(FILTER(K顶背>0,5),D+8,'顶背'),COLORFFAA22;  

T1:=REF(J,1)-REF(J,2)<0and=""j="">REF(J,1)-0.7ANDJ-REF(J,1)>REF(J,1)-REF(J,2);  

T2:=REF(J,1)-REF(J,2)>0ANDJ>REF(J,1);  

T:=T1ORT2;  

IF(T=1,J,DRAWNULL),COLORMAGENTA,LINETHICK2;  

IF(T=0,J,DRAWNULL),COLORWHITE,LINETHICK2;  

K预判:((KDJ.K)*(2/3))+((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100)*(1/3),COLORRED,NODRAW;  

D预判:((KDJ.D)*(2/3))+(SMA(RSV,3,1))*(1/3),COLORRED,NODRAW;  

JC1:=CROSS(D,K),NODRAW;JC2:=CROSS(K,D),NODRAW;  

交叉天数:SUMBARS(JC1ORJC2,1),NODRAW;  

DRAWICON(CROSS(K,D),K,1);  

DRAWICON(CROSS(D,K),K,2);  

DRAWICON(CROSS(D,K),K*1,2);  

DRAWICON(CROSS(K,D),K*1,1);  

KD的开口:IF(K-D<>0,K-D,0),NODRAW,COLORRED;  

月的乖离:(CLOSE-MA(CLOSE,20))/MA(CLOSE,20)*100,COLORRED,NODRAW;  

季的乖离:(CLOSE-MA(CLOSE,60))/MA(CLOSE,60)*100,COLORRED,NODRAW;  

量比:V/REF(MA(V,5),1),NODRAW,COLORRED;  

换手:VOL/CAPITAL*100,NODRAW,COLORLIRED;  

WR:100*(HHV(HIGH,42)-CLOSE)/(HHV(HIGH,42)-LLV(LOW,42))LINETHICK2,COLOR333333;  

50,DOTLINE;  

image.png

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。