N:=5;P1:-3;P2:=3;RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;K:SMA(RSV,P1,1);D:SMA(K,P2,1);J:3*K-2*D;{日周}周K:="J.K#WEEK"(9,3,3);周D:="KDJ.D#WEEK"(9,3,3);周J:="KDJ.J#WEEK"(9,3,3);月K:="KDJ.K#MONTH"(9,3,3);月D:="KDJ.D#MONTH"(9,3,3);月J:="KDJ.J#MONTH"(9,3,3);月:=oss(月K,月D);:=cross(周K,周D);日金叉:=FILTER(cross(K,D) and K<20 COLORFFFFFF;KDB:=BARSLAST(ref(cross(k,d),1));KDDB:>close and ref(k,KDB+1)
0,5),1,0);DRAWTEXT(K底背=1,D*0.98,''),COLORDDDDDD;KDD:=BARSLAST(ref(cross(d