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;
CJ_K:MA(K,15),LINETHICK2;
CJ_D:MA(D,15),LINETHICK2;
CJ_J:MA(J,15),LINETHICK2;
DRAWICON(CROSS(CJ_K,CJ_D) AND CJ_D<30,CJ_K*0.80,1);
DRAWICON(CROSS(CJ_D,CJ_K) AND CJ_D>70,CJ_K*1.05,2);