N:=9;M1:=3;M2:=3;RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;K:=(RSV,M1,1);D:=SMA(K,M2,1);J:=3*K-2*D,COLOR00FFFF;:MA(".K#MONTH"(9,3,3),20),COLORGREEN,NODRAW;月D线:MA("J.D#MONTH"(9,3,3),20),COLORRED,NODRAW;DRAWBAND(月,RGB(165,87,16),月D线,RGB(120,120,120));周K线:MA("KDJ.K#WEEK"(9,3,3) ,5),COLOR00FFFF,NODRAW;周D线:MA("KDJ.D#WEEK"(9,3,3) ,5),COLOR00FF00,NODRAW;周:MA("KDJ.J#WEEK"(9,3,3) ,5),COLORFF00FF,NODRAW;DRAWBAND(周K线,RGB(180,0,180),周D线,RGB(0,120,0));周KD差:=周K线-周D线;STICKLINE(周K线>=REF(周K线,WEEKDAY),