var3:=if(trou**ars(3,16,1)=0 and high>low+0.04,4,0);lc:=ref(c,1);涨停:=if(lc*1.1-c,1,0);hh:=count(涨停,13)>=1;震仓线:=45;操作线:=sma(max(c-lc,0),2,1)/sma(abs(c-lc),2,1)*100;pp:=操作线<震仓线 and ref(操作线,1)>震仓线;a:=sma(l,4,3);xg:a and ref(pp,1)and hh and var3>0; 20210311
看看能否满足你的要求,测试通过。{第一组}bbi:=(ma(close,3)+ma(close,6)+ma(close,12)+ma(close,24))/4;upr:=bbi+3*std(bbi,10);dwn:=bbi-3*std(bbi,10);震幅:=hhv(h,8)/llv(l,8);st:=(namelike('st')=0 and namelike('*...
zz:=if(ref(c,1)>ref(o,1) and o>ref(c,1)*1.014 and c<o*1.02,1,3);v5:=ma(v,5);v12:=ma(v,12);v34:=ma(v,34);c6:=ma(c,6);cross(c,c6) and v>v5*1.2 and v>v12*1.2 and zz>2 and c>h*0.975;
根据题意,选股公式如下:(提示:由于条件苛刻,不是每天都能选出股票的)vara:=(close-ref(open,29))/ref(open,29)*100;varb:=ema(0.667*ref(vara,1)+0.333*vara,5);vol>=1.3*ma(vol,5) and count(vara>=varb and vara<-17,3) and ref(low,1)...