编写要求:
MACD连续N天大于-0.1
www.gszx.com.cn网解答:
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26); DEA:=EMA(DIF,9); MACD:=(DIF-DEA)*2; BARSLASTCOUNT(MACD > -0.1) >= N;