含有典型的未来函数zig,会造成信号漂移,谨慎使用。选股代码如下:varc:=(zig(3,5)>ref(zig(3,5),1)) and (ref(zig(3,5),1)<=ref(zig(3,5),2)) and (ref(zig (3,5),2)<=ref(zig(3,5),3)); vard:=(zig(3,5)<ref(zig(3,5),1)) and (ref(zig(3,5),1)>=ref(zig(3,5),2)) and (ref(zig (3,5),2)>=ref(zig(3,5),3)); varc=1; 20210311
公式如下:选择的范围太大,我给你加了点限制,让你有更多的选择空间。ma30:=ma(c,30);diff:=ema(close,12)-ema(close,26); dea:=ema(diff,9); macd:=2*(diff-dea); fh1:=ref(macd,1)<ref(macd,2) and ref(macd,2)<ref(macd,3) and ref(macd,3)&...
bt1:=cross(rsi.rsi1,25);主力:=ema( (close-ma(close,7))/ma(close,7)*480,2)*5;散户:=ema( (close-ma(close,11))/ma(close,11)*480,7)*5;bt2:=cross(主力,散户) and 主力<-10; bt:=filter(count(bt1 or bt2,3)>=2,3);...
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;
diff:=ema(dclose,12)-ema(dclose,26);dea:=ema(diff,9);macd:=(diff-dea)*2;xg:llv(macd,3)>0 and macd>ref(macd,1) and ref(macd,1)<ref(macd,2) and ref(macd,2)<ref(macd,3) and macd>=0.15;