日线、周线、周&月金叉、死叉同一图指标(副图+源码+贴图)介绍
日线、周线、周&月金叉、死叉同一图指标(副图+源码+贴图)
{KDJ周叉 N 9 M1 3 M2 3 日线、周线、周&月金叉、死叉同一图 }
N:=9; M1:=3; M2:=3 ;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:SMA(RSV,M1,1);
D:SMA(K,M2,1);
J:3*K-2*D;
周K:MA("KDJ.K#WEEK"(n,m1,m2) ,5),DOTLINE,LINETHICK1,COLORWHITE;
周D:MA("KDJ.D#WEEK"(n,m1,m2) ,5),DOTLINE,LINETHICK1,COLOR33FF99;
周J:MA("KDJ.J#WEEK"(n,m1,m2) ,5),DOTLINE,LINETHICK1,COLORMAGENTA;
月K:MA("KDJ.K#MONTH"(n,m1,m2) ,5),POINTDOT,LINETHICK1,COLORWHITE;
月D:MA("KDJ.D#MONTH"(n,m1,m2) ,5),POINTDOT,LINETHICK1,COLOR33FF99;
月J:MA("KDJ.J#MONTH"(n,m1,m2) ,5),POINTDOT,LINETHICK1,COLORMAGENTA;
日金▲:DRAWTEXT(CROSS(K,D) ,18,'▲日金'),COLORred;
日死▼:DRAWTEXT(CROSS(d,k) ,82,'▼日死'),COLORgreen;
周金▲:DRAWTEXT(CROSS("KDJ.K#WEEK"(n,m1,m2),"KDJ.D#WEEK"(n,m1,m2)) ,8,'▲周金'),COLORred;
周死▼:DRAWTEXT(CROSS("KDJ.d#WEEK"(n,m1,m2),"KDJ.k#WEEK"(n,m1,m2)) ,92,'▼周死'),COLORgreen;
月金▲:DRAWTEXT(CROSS("KDJ.K#MONTH"(n,m1,m2),"KDJ.D#MONTH"(n,m1,m2)) ,0,'▲月金'),COLORMAGENTA;
月死▼:DRAWTEXT(CROSS("KDJ.D#MONTH"(n,m1,m2),"KDJ.K#MONTH"(n,m1,m2)) ,100,'▼月死'),COLORYELLOW
gd15642