这个公式的核心就是判断17日均线是向上或向下,如果向上三线合并,向下则分开.故选股简化为:xg:ma(c,17)>=ref(ma(c,17),1) and ref(ma(c,17),1)<ref(ma(c,17),2); 或:fl:=ma(close,17)+abs(ma(close,17)-ref(ma(close,17),1));fs:=ma(close,17)+ma(close,...
选股周期自行选用。(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);