编写要求:
MACD红轴连续缩短3天,第四天超越第三天,且DIF和DEA大于等于0的选股公式。
www.gszx.com.cn网解答:
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26); DEA:=EMA(DIF,9) ; MACD:=(DIF-DEA)*2; X:=EVERY(MACD<REF(MACD,1),3) AND MACD>0; REF(X,1) AND MACD>REF(MACD,1) AND DIF>0 AND DEA>0;