双周期MACD改进版指标 通达信公式(附图)

[复制链接]
查看222 | 回复0 | 2021-8-20 16:20:10 | 显示全部楼层 |阅读模式

DIF周:=EMA(CLOSE,12*5)-EMA(CLOSE,26*5);
DEA周:=EMA(DIF周,9*5);
MACD周:(DIF周-DEA周)*2,COLORMAGENTA,NODRAW;
DIF日:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA日:=EMA(DIF日,9);
MACD日:(DIF日-DEA日)*2,COLORRED,NODRAW;
STICKLINE(MACD周>=0,0,MACD周,2,1),COLOR660066;
STICKLINE(MACD周<0,0,MACD周,2,1),COLOR555555;
(DIF日-DEA日),COLORSTICK;
STICKLINE(DIF日>DEA日 AND DIF周>DEA周,0,0.03,9,0),COLORYELLOW;
STICKLINE(DIF日<DEA日 AND DIF周<DEA周,0,0.03,9,0),COLORBLUE;
持股:DIF日>DEA日 AND DIF周>DEA周,COLORYELLOW,NODRAW;
持币:DIF日<DEA日 AND DIF周<DEA周,COLORBLUE,NODRAW;

14T63H31310-14420.jpg

14T63H31310-14420.jpg

 

回复

使用道具 举报

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

本版积分规则