d:=ma(close,80)-ma(close,10)/3;{收盘价的80日简单移动平均-收盘价的10日简单移动平均/3} xg:if(close<d and vol/240>ma(vol,5)/240 and close>ref(close,1)*1.08 and close(close,13)*1.3,1,0);{如果符合抄底则选股,否则返回0} 狂飙蚂蚁博客编写,还有一个...
var21:=(close-llv(low,36))/(hhv(high,36)-llv(low,36))*100;var22:=sma(var21,3,1);var23:=sma(var22,3,1);var24:=sma(var23,3,1);var25:=cross(var23,var24)and var23<20;filter(var25,10)=1 and dyna**(17)&g...
ema30:=ema(c,30);ema60:=ema(c,60);ema90:=ema(c,90);ema120:=ema(c,120);ema250:=ema(c,250);ss:=cross(ema30,ema60) and c>o and c>ref(c,1) and c/ref(c,1)>=1.018or cross(ema30,ema120) and c>o a...
n:=20;d:=5;boll:=ma(close,n);ub:=boll+2*std(close,n);lb:=boll-2*std(close,n);xg:count(range(c,lb,boll)=1,d) and lb>ref(lb,1) and ref(lb,1)<ref(lb,2);{d:为收盘价在中轨和下轨间运行天数(我设为5天,自己可改),下轨第一天转头向上时进行选股...