两个指标在通达信上都已通过,无未来,放心使用-ok.{牛选股}yc_加仓:=((close-ref(ma(close,18),1))/18+ma(close,18))*1.004;加仓条件:cross(close,yc_加仓) and yc_加仓>ref(yc_加仓,1);{涨选股}bh:ma(hhv(h,1.618*2),5),coloryellow;bl:ma(llv(l,1.618*2...
你的问题很不清楚,单纯用你后面给的源码做选股,用系统的macd可以这样:推荐答案显然是错误的diff:="macd.dif";xg:ref(diff,1)<ref(diff,2) and ref(diff,2)<ref(diff,3) and diff>ref(diff,1); 二楼的正确:diff:=ema(close,7) - ema(close,19);...