大智慧MACD大牛指标公式

[复制链接]
查看120 | 回复0 | 2021-8-21 13:37:32 | 显示全部楼层 |阅读模式

DIFF:(EMA(CLOSE,8) - EMA(CLOSE,13)),colorred,linethick3;
DEA:EMA(DIFF,9),colorff00ff;
MACD:2*(DIFF-DEA), COLORSTICK;
MACD1:2*(DIFF-DEA), COLORffffff;
stickline(macd>0 and macd>ref(macd,1),macd,0,5,0),colorff99ff,stick;
stickline(macd<0 and macd>ref(macd,1),macd,0,5,0),colorffffff,stick;
v1:if(diff<0,diff,0),coloryellow,linethick2;
v2:if(diff<0,0,diff),colorred,linethick2;
v3:if(diff<dea,diff,dea),color00ff00,linethick2;
v4:if(diff>dea,dea,dea),colorff00ff,linethick2;
aa:=cross(diff,dea);
DRAWICON(aa,-0.02,1);

202108211210.jpg

202108211210.jpg

 

回复

使用道具 举报

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

本版积分规则