diff:=ema(close,12)-ema(close,26);dea:=ema(diff,9);macd:=2*(diff-dea);sx:=barslast(cross(dea,diff))+1;jx:=barslast(cross(diff,dea))+1;t1:=if(jx=1 and diff>ref(diff,ref(jx,1)+1),1,0);t2:=if(jx=1 and...
看看能否满足你的要求,测试通过。{第一组}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('*...
a1:=ref(close,5)>ref(close,4);a2:=ref(close,4)>ref(close,3);a3:=ref(close,3)>ref(close,2);a4:=ref(close,2)>ref(close,1);a5:=close>ref(high,1) and v>ref(v,1);ret:=a1 and a2 and a3 and...
分开二个公式去选股var0:=vol/close/2;var1:=sum(if(var0 > 100 and close > ref(close,1),var0,0),0);var2:=sum(if(var0 > 100 and close < ref(close,1),var0,0),0);var3:=sum(if(var0 < 100 and close >...