n1:=5;n2:=9;nmtm:=c-ref(c,1);zlgj:=100*ema(ema(nmtm,n1),n1)/ema(ema(abs(nmtm),n1),n1);t1:=ref(zlgj,1)<=zlgj;xg:t1=1 and ref(t1,1)=0 and zlgj<0;信号较多,帮你优化了一下。 20210311
ds:="mfi.mfi"(12,9);a9:= datetoday(date);ds1:=if(a9>7399{20110324},0,-ds);aj2:=a9>146 and a9<200;ai2:=a9>696 and a9<750;ah2:=a9>1315 and a9<1365;aa2:=a9>1854 and a9&l...
v1:=c/ma(c,40)*100<78; v2:=c/ma(c,60)*100<74;v3:=h>l*1.03;v4:=v3 and count(v3,5)>1;绝底:=v4 and (v1 or v2) and c<ma(c,10)/1.1 and v/ref(v,1)<1 and "bias.bias1"<-6...
以下是修改过的,按问题要求做的股票选股公式,用软件实际测试过能达到要求,可以使用: za1:=sma(close,2,1);za2:=ema(c,2);za3:=ema(slope(c,24)*20+c,42);bu:=cross(za2,ref(za2,1)*1.017);sel:=cross(za3,za2);zmin:bu and cross(za2,za3*1.008)and za1>...