大智慧MACD变色变天指标公式

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

DIFF : EMA(CLOSE,12) - EMA(CLOSE,26);
DEA : EMA(DIFF,9);
MACD : 2*(DIFF-DEA), COLORSTICK;
PARTLINE(dea,dea>REF(dea,1),RGB(255,255,255),dea<REF(dea,1),RGB(255,255,255)),Linethick1;
PARTLINE(DIFF,DIFF>REF(DIFF,1),RGB(255,0,0),DIFF<REF(DIFF,1),RGB(0,255,0)),Linethick2;
DRAWGBKLAST(DEA>0,STRIP(RGB(90,0,0),RGB(10,150,0),0)) and DRAWGBKLAST(dea<0,STRIP(RGB(0,128,128),RGB(25,25,112),0));
日金:DRAWTEXT(CROSS(DIFF,DEA) ,MACD,'▲'),align2,COLORred;
日死:DRAWTEXT(CROSS(DEA,DIFF) ,macd*1.5,'▼'),align2,COLORgreen;

202108211148.jpg

202108211148.jpg

 

回复

使用道具 举报

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

本版积分规则