通达信美化版MACD副图源码

[复制链接]
查看45 | 回复0 | 2022-7-24 05:13:59 | 显示全部楼层 |阅读模式

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;

61455245.jpg

61455245.jpg

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则