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;
TJ00:=BArslAST(REF(crOSS(K,D) AND REF(K,1)<35,1));
TJ11:=C5 AND K>REF(K,TJ00+1) AND CROSS(K,D);
加仓:IF(TJ11,35,0),COLORGREEN;