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:=C<REF(C,TJ00+1)*1.1 AND REF(K,1)<60 AND (TJ00+1)<25 AND (TJ00+1)>5 AND K>REF(K,TJ00+1) AND CROSS(K,D);
加仓:IF(TJ11,35,0),COLORGREEN;