通达信美化版MACD指标公式

通达信三线出击抓暴涨主图指标公式

通达信美化版MACD指标公式:

SHORT:=9;

LONG:=26;

MID:=12;

DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG),LINETHICK1;

DEA:=EMA(DIF,MID),LINETHICK2;

macd:=(DIF-DEA)*2,COLORstICK;

STICKLINE(MacD>0 AND MACD>=REF(MACD,1),0,MACD,1,0),COLOR0000FF;

STICKLINE(MACD>0 AND MACD<REF(MACD,1),0,MACD,1,0),COLOR000066;

STICKLINE(MACD<0 AND MACD<REF(MACD,1),0,MACD,1,0),COLOR00CC33;

STICKLINE(MACD<0 AND MACD>=REF(MACD,1),0,MACD,1,0),COLOR006633;

DIFF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG),LINETHICK1;

DEAA:EMA(DIF,MID),COLOR00FFFF,LINETHICK1;

通达信脱离苦海指标公式