N:=85;M1:=7;M2:=6;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:SMA(RSV,M1,1),LINETHICK2,COLOREEEE33;
D:SMA(K,M2,1),LINETHICK2 ,COLOR6699FF;
J:=3*K-2*D;
买入:=CROSS(J,D )AND CROSS(J,K)AND K 40 AND D 50 AND J
DRAWICON(买入=1,20,4);