aaa2:=sum(if( close>ref(close,1),vol*c,0),0);aaa3:=sum(if( close<ref(close,1),vol*c,0),0);aaa4:=sum(if( close=ref(close,1),vol*c,0),0);bb1:=0;b1万元:=dvol*dclose/100;b1差:=b1万元-ref(b1万元,1);b2万元:=dvol*dclose/100;净流入万元:=(aaa2-aaa3-0.5*aaa4);pm:=ma(净流入万元,1);pma:=pm/ref(pm,1)>1;pmb:=ref(pma,1)<1 and pma; 密码:=(ema(ma(b1万元,2),2))/100000;二日比:=密码/ref(密码,1);选股:=pmb and 密码>ref(密码,1) and 二日比>1;均价线:=amount/v/100;均价线2:=ma(均价线,3);突破:=c>均价线2 and 均价线2<ref(均价线2,1) and ref(均价线2,1)<ref(均价线2,2)and ref(均价线2,2)<ref(均价线2,3) and 选股;dif1:=ema(dclose,12)-ema(dclose,26);dea1:=ema(dif1,9);aaa1:=(dif1-dea1)*2*60;aaa上:=if(aaa1>ref(aaa1,1),aaa1,0);aaa下:=if(aaa1<ref(aaa1,1),aaa1,0);黑马线:=15;主力:=aaa1-ref(aaa1,1),colorred;黑马xg:=cross(主力,黑马线) and aaa上>0;黑马突破:突破 or 黑马xg; 20210311
{通达信已通过测试}{选股}var1:=(2*close+high+low)/4;var2:=llv(low,34);var3:=hhv(high,34);xx:=ema((var1-var2)/(var3-var2)*100,13);yy:=ema(0.667*ref(xx,1)+0.333*xx,2);选股:cross(xx,yy) and xx<20;-----------------...
看看能否满足你的要求,测试通过。{第一组}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;