{ok.已合并测试通过}ma1:=ma(close,5);ma2:=ma(close,10);ma3:=ma(close,30);ma4:=ma(close,60);j1:=abs(close-ma2);j2:=abs(close-ma3);j3:=abs(close-ma4);fd:=close*0.1;zlcm:=ema(winner(close)*70,5);shcm:=ema((winner(close*1.1)-winner(close*0.91))*80,3);zzlkp:=zlcm/(zlcm+shcm)*100;zzljj:=ema(zzlkp,89);zjlrqd:=zzlkp-zzljj;aa:=ema(zjlrqd,3);bb:=ema(aa,5);cc:=aa-bb;选股1:=close>ma1 && ma1>ma2 && close>ma4 && ma1>ref(ma1,1) && ma4>ref(ma4,1) && j1<fd && j2<fd && j3<fd && cc>ref(cc,1);n:=55;wl:=(close-ma(close,6))/ma(close,6)*100;wlt:=ma(wl,89);wlt1:=cross(wl,wlt);wlt11:=cross(wl,-10);wlt2:=filter(wlt1,8);t1:=wlt11 or wlt2;t2:=ref("kdj.j",1)<0 and "kdj.j">0;lv:=ma(c,24);hs:=v/capital*100;hr0:=hhv(high,n);hry0:=llv(low,n);hry110:=hr0*hry0;hry330:=sqrt(hry110);ns1:=c>hry330 and hry330 >=ref(hry330,1) and c>lv;t3:=wlt2 or wl>wlt;xg1:=t1 and ns1;xg2:=t1 and t3;w18:=xg1 or xg2 or t2;a:=ema(close,2);b:=ema(((slope(close,21)*20)+close),42);xg:=cross(a,b);牛股:=w18 and xg and sum(v/capital*100,3)>4;选股1+牛股>0; 20210311
年月日起点=q1*10000+q2*100+q3;年月日终点=p1*10000+p2*100+p3;一字涨停=h=l and c>ref(c,1);从起点统计:sum((date>年月日起点 and date<年月日终点)*一字涨停,0)>0;年月日起点=q1*10000+q2*100+q3;年月日终点=p1*10000+p2*100+p3;一字涨停=h=l and c&g...
{未来函数,慎用}var11:=zig(3,6)>ref(zig(3,6),1) and ref(zig(3,6),1)<=ref(zig(3,6),2) and ref(zig(3,6),2)<=ref(zig(3,6),3);var13:=zig(3,22)>ref(zig(3,22),1) and ref(zig(3,22),1)<=ref(zig(3,22),...
我刚才写了一下,我的写法你想要的选到,但是需要个公式,并且要同时满公式如下:1.zig(3,5)>ref(zig(3,5),1) and ref(zig(3,5),1)<=ref(zig(3,5),2)and ref(zig(3,5),2)<=ref(zig(3,5),3);2.close>low*0.98;试一下吧,不行我再改~