下面是按照您的要求编写的公式,n暂定20天,祝您投资顺利!n:=20;ar1:=vol>=2*ref(ma(vol,30),1);ar2:=count(ar1,n)=2 and count(ar1,(n-1))=1;ar3:=barslast(ar1);ar4:=v>ref(v,(ar3+(n-1)))*1.5;xg:ar2 and ar4; 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;ref(close,1)<ref(bbi,1) and ref(open,1)<ref(bbi,1) and open>ref(close,1) and open>bbi and close>bbi;
你好,帮你编写了,希望能帮到你。rsv:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100;k:=sma(rsv,3,1);d:=sma(k,3,1);j:=3*k-2*d;typ:=(high+low+close)/3;cci1:=(typ-ma(typ,14))/(0.015***edev(typ,14));条件选股:cross(k,d) and ...
均价:=amount/vol/100,coloryellow;ll:=c<ref(c,1) and c/均价<(1-0.03);ll1:=cross(sum(ll,0),0.5);bb1:=sum(ll1,0)*cross(count(c>ref(c,1),barslast(ll1)),0.5);cb1:=const(sum(if(bb1,ref(c,1),draw**),0))...
试这个: a1:=ma(c,5);a2:=ma(c,10);ab:=c>a1 and c>a2;长上影:=(h-max(c,o))>=(max(c,o)-l)and c>o;实体1:=(max(c,o)-min(c,o))/min(c,o)*100;长上影选:ab and 长上影 and 实体1>1.5;