通达信MACD日周月彩带指标公式
2021/4/10 18:22:03
XA_1:=(HIGH+LOW+CLOSE)/3;
DIFF:EMA(XA_1,25)-EMA(XA_1,99),LINETHICK0;
DEA:EMA(DIFF,17),LINETHICK0;
MACD:2*(DIFF-DEA),LINETHICK0;
XA_2:=DIFF;
XA_3:=DEA;
DRAWBAND(XA_2,RGB(220,100,0),XA_3,RGB(0,290,255));
IF(XA_2>=REF(XA_2,1),XA_2,DRAWNULL),COLOR2B4AEC,LINETHICK0;
IF(XA_2<REF(XA_2,1),XA_2,DRAWNULL),COLORGREEN,LINETHICK0;
IF(XA_3>=REF(XA_3,1),XA_3,DRAWNULL),COLORRED,LINETHICK0;
IF(XA_3<REF(XA_3,1),XA_3,DRAWNULL),COLORGREEN,LINETHICK0;
STICKLINE(MACD>=0 AND MACD>=REF(MACD,1),0,MACD,2,0),COLOR4D00D6;
STICKLINE(MACD>=0 AND MACD>=REF(MACD,1),0,MACD,1.5,0),COLOR4A00A4;
STICKLINE(MACD>=0 AND MACD>=REF(MACD,1),0,MACD,1,0),COLOR0000EE;
STICKLINE(MACD>=0 AND MACD>=REF(MACD,1),0,MACD,0.1,0),COLOR4A008E;
STICKLINE(MACD>=0 AND MACD>=REF(MACD,1),0,MACD,0,0),COLOR5200FF;
STICKLINE(MACD>=0 AND MACD<REF(MACD,1),0,MACD,2,0),COLOR6A6F60;
STICKLINE(MACD>=0 AND MACD<REF(MACD,1),0,MACD,1.5,0),COLOR936F60;
STICKLINE(MACD>=0 AND MACD<REF(MACD,1),0,MACD,1,0),COLORBE6F60;
STICKLINE(MACD>=0 AND MACD<REF(MACD,1),0,MACD,0.1,0),COLORBE9560;
STICKLINE(MACD>=0 AND MACD<REF(MACD,1),0,MACD,0,0),COLORBE957F;
STICKLINE(MACD<0 AND MACD>=REF(MACD,1),0,MACD,2,0),COLOR520E4F;
STICKLINE(MACD<0 AND MACD>=REF(MACD,1),0,MACD,1.5,0),COLOR520E59;
STICKLINE(MACD<0 AND MACD>=REF(MACD,1),0,MACD,1,0),COLOR520E67;
STICKLINE(MACD<0 AND MACD>=REF(MACD,1),0,MACD,0.1,0),COLOR520E89;
STICKLINE(MACD<0 AND MACD<REF(MACD,1),0,MACD,2,0),COLOR155500;
STICKLINE(MACD<0 AND MACD<REF(MACD,1),0,MACD,1.5,0),COLOR208000;
STICKLINE(MACD<0 AND MACD<REF(MACD,1),0,MACD,1,0),COLOR2BAA00;
STICKLINE(MACD<0 AND MACD<REF(MACD,1),0,MACD,0.1,0),COLOR35D500;
STICKLINE(MACD<0 AND MACD<REF(MACD,1),0,MACD,0,0),COLOR40FF00;
XA_4:=EMA(AMOUNT/(100*VOL),5);
XA_5:=EMA(AMOUNT/(100*VOL),13);
XA_6:=EMA(AMOUNT/(100*VOL),34);
XA_7:=DMA(CLOSE,VOL/CAPITAL);
XA_8:=(CLOSE-XA_5)/XA_5*100;
DIF:EMA(XA_1,7)-EMA(XA_1,25);
DE:EMA(DIF,9);
MACDS:2*(DIF-DE),LINETHICK0;
IF(XA_8>0 AND XA_8>REF(XA_8,1),DIF,DRAWNULL),COLORRED,LINETHICK2;
IF(CROSS(CLOSE,XA_6),DIF,DRAWNULL),COLORWHITE,LINETHICK2;
IF(CROSS(CLOSE,XA_7),DIF,DRAWNULL),COLORYELLOW,LINETHICK2;
IF(DIF>DE,DIF,DRAWNULL),COLORFFCC33,LINETHICK2;
IF(DIF<DE,DIF,DRAWNULL),DOTLINE,COLORWHITE;
IF(DIF>DE,DE,DRAWNULL),COLORGREEN,LINETHICK2;
IF(DIF<DE,DE,DRAWNULL),DOTLINE,COLORRED;
投股 票网 www.tou1 8.cn
股市公式下载推荐