根据题意,选股公式如下:dif:=ema(close,12)-ema(close,26);dea:=ema(dif,9);macd:=(dif-dea)*2;均macd:=ema(macd,5);a1:=barslast(ref(cross(macd,均macd),1));金叉底背:=ref(close,a1+1)>close and macd>ref(macd,a1+1) and c...
diff:=ema(close,12) - ema(close,26);dea:=ema(diff,9);a1:=barslast(ref(cross(diff,dea),1));b1:=ref(c,a1+1)>c and ref(diff,a1+1)<diff and cross(diff,dea);xg:filter(b1>0,5);