编写要求:
www.gszx.com.cn公式 网解答:
网友求助:
写一个MACD选股公式就是MACD将死没死时开口放大同时红柱增高是选股。
解答如下:
DIF:=(EMA(CLOSE,12)-EMA(CLOSE,26))/EMA(CLOSE,26)*100;
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
M10:=MA(C,10);
REF(DIF>0 AND DEA>0 AND MACD<=0.4 AND M10>REF(M10,1),1) AND C>=REF(HHV(H,10),1) AND MACD>REF(MACD,1);