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;信号较多,帮你优化了一下。
v6:=close/ref(close,3)>=1.1;v7:=backset(v6,3);买入:=if((v7 and count(v7,3)=1),30,0);去除st:=ex**t(c/ref(c,1)>1.055,60);去除停牌:=dyna**(4)>0;xg:买入 and 去除st and 去除停牌;我自用的去除st和停牌股比你那个好用,所以给你改了。股票公式专家...
ma05:=ma(c,5);ma30:=ma(c,30);五日乖离率:=(c-ma05)/ma05*100;三拾日乖离率:=(c-ma30)/ma30*100;mr:=count(cross(五日乖离率,0),3)>=1 and 三拾日乖离率>ref(三拾日乖离率,1) and ma05>ref(ma05,1) and (c/ref(c,1)-1)*100>5...