通达信MACD周期共鸣指标公式

通达信背离强度修改版指标公式

通达信MACD周期共鸣指标公式:

0;

70;

80;

{60分}

DIF60:=EMA(CLOSE,12/4)-EMA(CLOSE,26/4);

DEA60:=EMA(DIF60,9/4);

DRAWICON(DIF60>=DEA60,65,1);

DRAWICON(DIF60<DEA60,65,2);

{120分}

DIF120:=EMA(CLOSE,12/2)-EMA(CLOSE,26/2);

DEA120:=EMA(DIF120,9/2);

DRAWICON(DIF120>=DEA120,60,1);

DRAWICON(DIF120<DEA120,60,2);

{180分}

DIF180:=EMA(CLOSE,12/4*3)-EMA(CLOSE,26/3*2);

DEA180:=EMA(DIF180,9/4*3);

DRAWICON(DIF180>=DEA180,55,1);

DRAWICON(DIF180<DEA180,55,2);

{1日}

DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);

DEA:=EMA(DIF,9);

DRAWICON(DIF>=DEA,50,1);

DRAWICON(DIF<DEA,50,2);

{2日}

DIF2:=EMA(CLOSE,12*2)-EMA(CLOSE,26*2);

DEA2:=EMA(DIF2,9*2);

DRAWICON(DIF2>=DEA2,45,1);

DRAWICON(DIF2<DEA2,45,2);

{3日}

DIF3:=EMA(CLOSE,12*3)-EMA(CLOSE,26*3);

DEA3:=EMA(DIF3,9*3);

DRAWICON(DIF3>=DEA3,40,1);

DRAWICON(DIF3<DEA3,40,2);

{4日}

DIF4:=EMA(CLOSE,12*4)-EMA(CLOSE,26*4);

DEA4:=EMA(DIF4,9*4);

DRAWICON(DIF4>=DEA4,35,1);

DRAWICON(DIF4<DEA4,35,2);

{周}

周MD:=macd.DIF#WEEK;

周MA:=MacD.DEA#WEEK;

DRAWICON(周MD>=周MA,30,1);

DRAWICON(周MD<周MA,30,2);

{8日}

DIF8:=EMA(CLOSE,12*8)-EMA(CLOSE,26*8);

DEA8:=EMA(DIF8,9*8);

DRAWICON(DIF8>=DEA8,25,1);

DRAWICON(DIF8<DEA8,25,2);

{12日}

DIF12:=EMA(CLOSE,12*12)-EMA(CLOSE,26*12);

DEA12:=EMA(DIF12,9*12);

DRAWICON(DIF12>=DEA12,20,1);

DRAWICON(DIF12<DEA12,20,2);

{16日}

DIF16:=EMA(CLOSE,12*16)-EMA(CLOSE,26*16);

DEA16:=EMA(DIF16,9*16);

DRAWICON(DIF16>=DEA16,15,1);

DRAWICON(DIF16<DEA16,15,2);

{1月}

月MD:=MACD.DIF#MONTH;

月MA:=MACD.DEA#MONTH;

DRAWICON(月MD>=月MA,10,1);

DRAWICON(月MD<月MA,10,2);

{共振力度}

DRAWICON(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 ,80,26);

DRAWICON(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 ,80,25);

通达信超强趋势上升选股指标公式