MACD周期共鸣之红钻石选股指标公式
DIF60:=EMA(CLOSE,12/4)-EMA(CLOSE,26/4);
DEA60:=EMA(DIF60,9/4);
DIF120:=EMA(CLOSE,12/2)-EMA(CLOSE,26/2);
DEA120:=EMA(DIF120,9/2);
DIF180:=EMA(CLOSE,12/4*3)-EMA(CLOSE,26/3*2);
DEA180:=EMA(DIF180,9/4*3);
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
DIF2:=EMA(CLOSE,12*2)-EMA(CLOSE,26*2);
DEA2:=EMA(DIF2,9*2);
DIF3:=EMA(CLOSE,12*3)-EMA(CLOSE,26*3);
DEA3:=EMA(DIF3,9*3);
DIF4:=EMA(CLOSE,12*4)-EMA(CLOSE,26*4);
DEA4:=EMA(DIF4,9*4);
周MD:=macd.DIF#WEEK;
周MA:=MacD.DEA#WEEK;
DIF8:=EMA(CLOSE,12*8)-EMA(CLOSE,26*8);
DEA8:=EMA(DIF8,9*8);
DIF12:=EMA(CLOSE,12*12)-EMA(CLOSE,26*12);
DEA12:=EMA(DIF12,9*12);
DIF16:=EMA(CLOSE,12*16)-EMA(CLOSE,26*16);
DEA16:=EMA(DIF16,9*16);
月MD:=MACD.DIF#MONTH;
月MA:=MACD.DEA#MONTH;
红钻石:DIF60>=DEA60 AND DIF120>=DEA120 AND DIF180>=DEA180 AND DIF>=DEA AND DIF2>=DEA2 AND DIF3>=DEA3 AND DIF4>=DEA4 AND 周MD>=周MA AND DIF8>=DEA8 AND DIF12>=DEA12 AND DIF16>DEA16 AND 月MD>=月MA;