编写要求:
www.gszx.com.cn网解答:
网友求助:
macd主图公式:
DIF:IF(EMA(C,12)>EMA(C,26),EMA(C,12),EMA(C,26));
DEA:IF(EMA(EMA(C,12),9)>EMA(EMA(C,26),9),EMA(EMA(C,12),9),EMA(EMA(C,26),9));
请老师帮忙编写:在金叉的状态下,DIF和DEA的角度大于N的选股 ,谢谢先了。
解答如下:
DIF:IF(EMA(C,12)>EMA(C,26),EMA(C,12),EMA(C,26));
DEA:IF(EMA(EMA(C,12),9)>EMA(EMA(C,26),9),EMA(EMA(C,12),9),EMA(EMA(C,26),9));
jiaodua:=ATAN((DIF/REF(DIF,1)-1)*100)*57.3;
jincha:=cross(DIF,DEA);
jincha and jiaodua>=n;