同花顺MACD解密指标公式

DIF:(EMA(CLOSE,12) – EMA(CLOSE,26));

DEF:EMA(DIF,9);

MACD2:(2 * (DIF – DEF)),linethick1;

STICKLINE(MACD2>=0 AND MACD2>REF(MACD2,1),0,MACD2,6,0),colorred;

STICKLINE(MACD2>=0 AND MACD2<REF(MACD2,1),0,MACD2,6,1),coloryellow;

STICKLINE(MACD2<0 AND MACD2<REF(MACD2,1),0,MACD2,6,0),colorgreen;

STICKLINE(MACD2<0 AND MACD2>REF(MACD2,1),0,MACD2,6,1),colorwhite;

 

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注