这个公式的核心就是判断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,...
diff:=ema(close,12)-ema(close,26);dea:=ema(diff,9);macd:=2*(diff-dea);select:cross(diff,dea)and dea>-1.0 and dea<0.5 and close>ref(close,1)and close>=ma(c,60);复制粘贴以上内容后就可选股