N:=9;M1:=3;M2:=3;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,M1,1),COLORWHITE,LINETHICK2;
D:=Sma(K,M2,1),COLORYELLOW,LINETHICK2;
J:=3*K-2*D,COLORMAGENTA,LINETHICK2;
抄底:IF(REF(COUNT(K=5,1) AND COUNT(K<30,5)>=2 AND COUNT(J<0,3)>0 AND crOSS(J,0),60,50),COLOR00FFFF;