hs:=v/capital*100;s1:=between(hs,3,30);lb:=v/ref(ma(v,5),1);s2:=between(lb,1.3,30);st:=if(namelike('st')or namelike('*st'),0,1);s3:=c/ref(c,1);xz:s1 and s2 and s3>1.02 and st and v>1 and c;
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;