选股周期自行选用。(cross(kd.k,kd.d) or (ref(kd.k,2)>ref(kd.k,1) and kd.k>ref(kd.k,1))) and macd.macd>ref(macd.macd,1) and range(cci.cci,-100,100) and cci.cci>ref(cci.cci,1);
y1:=ma(c,n)>ma(c,n1);y2:=ma(c,n1)>ma(c,n2);y3:=ref(c,1)(c,2);y4:=ref(c,2)(c,3);y5:=cross(c,(ref(h,1)+ref(l,1))/2);预选:y1 and y2 and y3 and y4 and y5;没测试,试试吧。成交量漏写了~ s3:=ref(v,1)(v,2);s4:=ref(v,2)...