{}
N:=9;
M1:=3;
M2:=3;
{周KDJ}
TJ1:="KDJ.J#WEEK"(N,M1,M2)>"KDJ.K#WEEK"(N,M1,M2);
STICKLINE(TJ1,0,2,4,0),COLORRED,LINETHICK2;
TJ2:="KDJ.J#WEEK"(N,M1,M2)<"KDJ.K#WEEK"(N,M1,M2);
STICKLINE(TJ2,0,2,4,0),COLORGREEN,LINETHICK2;
{月KDJ}
TJ3:="KDJ.J#MONTH"(N,M1,M2)>"KDJ.K#MONTH"(N,M1,M2);
STICKLINE(TJ3,-6,-4,4,0),COLORRED,LINETHICK2;
TJ4:="KDJ.J#MONTH"(N,M1,M2)<"KDJ.K#MONTH"(N,M1,M2);
STICKLINE(TJ4,-6,-4,4,0),COLORGREEN,LINETHICK2;
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),LINETHICK2,COLORWHITE;
周D:MA("KDJ.D#WEEK"(N,M1,M2) ,5),LINETHICK2,COLOR33FF99;
}
周J:MA("KDJ.J#WEEK"(N,M1,M2) ,5),LINETHICK1,COLORGRAY;
{
周金: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;
};