通达信超前优化MACD指标公式

通达信移动成本主图指标公式

通达信超前优化MACD指标公式:

重心1:=(2*C+H+L+O)/5;

bbi1:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;

偏差量1:=重心1-BBI1;

RSV1:=(偏差量1-LLV(偏差量1,9))/(HHV(偏差量1,9)-LLV(偏差量1,9))*100;

K1:=SMA(RSV1,3,1);

D1:=SMA(K1,3,1);

DIF1:=EMA(CLOSE,6) - EMA(CLOSE,13);

DEA1:=EMA(DIF1,5);

macd1:=2*(DIF1-DEA1),stICK;

MacD2:=EMA(MACD1,3);

STICKLINE(MACD1>MACD2,0,MACD1,1,0),COLOR0000EE;

STICKLINE(MACD1>MACD2,0,MACD1,0.5,0),COLOR5555FF;

STICKLINE(MACD1>MACD2,0,MACD1,0.2,0),COLOR8080FF;

STICKLINE(MACD1<MACD2,0,MACD1,1,0),COLOR2BAA00;

STICKLINE(MACD1<MACD2,0,MACD1,0.5,0),COLOR35D500;

STICKLINE(MACD1<MACD2,0,MACD1,0.2,0),COLOR40FF00;

DIF8: DIF1,COLORRED,LINETHICK2;

DEA8: DEA1,COLORYELLOW,LINETHICK2;

IF(DIF8<DEA8,DIF8,DRAWNULL),LINETHICK2,COLORGREEN;

IF(DIF8<DEA8,DEA8,DRAWNULL),LINETHICK2,COLORFF8000;

通达信捉妖大师选股指标公式