rsv:=(close-llv(low,5))/(hhv(high,5)-llv(low,5))*100;k:=sma(rsv,3,1);d:=sma(k,3,1);j:=3*k-2*d;mtm:=close-ref(close,12);mtmma:=ma(mtm,6);xg:k>50 and cross(k,d)and mtm>=mtmma;
m1:=ma(c,5);m2:=ma(c,10);m3:=ma(c,20);m4:=ma(c,30);t1:=count(c>m4,5)=5 and llvbars(m3,5)-hhvbars(m3,5)>3 and hhv(m2,5)/llv(m2,5);t2:=max(max(m1,m2),m3)-min(min(m1,m2),m3);xg:t1=1 and t2=1;