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;
xg:ref(c<o and h/l>1.03,1)and c>o and c/ref(c,1)-1>ref(h/l-1,1)*0.5 and macd.macd(count(ma(c,10)(c,20)and ma(c,20)(c,60),30)=30)and hhv(h,10)/llv(l,10)>1.05;