{N:9 M1:3 M2:3}
k55:"kdj.k"(55,3,3);
d55:"kdj.d"(55,3,3);
stickline(k55>=d55,k55,d55,8,0),colorred,linethick2;
stickline(k55<d55,k55,d55,8,0),color00ff00,linethick2;
drawtext(cross(k55,d55) and k55<30,30,'买'),coloryellow;
drawtext(cross(d55,k55) and k55>80,90,'卖'),colorwhite;
DRAWGBK((d55>k55),STRIP(rgb(0,0,200),rgb(0,140,0),0));
d89:"kdj.d"(89,13,3),colorff9900,linethick1;
REFLINE: 0, 20, 50, 80, 100;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:SMA(RSV,M1,1),colorwhite;
D:SMA(K,M2,1),coloryellow;
J:3*K-2*D,COLORFF00FF;
买:=CROSS(J,K) and CROSS(K,D) and D<50;
卖:=CROSS(K,J) and CROSS(D,K) and D>50;
DRAWTEXT(买,D,'买 '),colorff00ff;
DRAWTEXT(卖,D,'卖 '),COLOR00FFFF;
VERTLINE(买,0),colorred;
VERTLINE(卖,0),colorgreen;