MACD强弱分柝走势副图指标 源码 通达信

[复制链接]
查看72 | 回复0 | 2022-7-11 10:50:51 | 显示全部楼层 |阅读模式
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA), COLORSTICK;
DRAWBAND(DIFF,RGB(255,50,0),DEA,RGB(0,255,50));
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,1,0),COLORGREEN;
STICKLINE(MACD<REF(MACD,1)AND MACD<0,0,MACD,1,0),COLORFFCC33;
STICKLINE(MACD>REF(MACD,1)AND MACD,0,MACD,1,0),COLORYELLOW;
STICKLINE(MACD>REF(MACD,1)AND MACD>0,0,MACD,1,0),COLORMAGENTA;
强弱分界:0,COLORBLUE,LINETHICK2;
DRAWTEXT(ISLASTBAR AND DIFF>REF(DIFF,1),DIFF,' ↑向上趋势'),COLORFFFFFF;
DRAWTEXT(ISLASTBAR AND DIFF<REF(DIFF,1),DIFF,' ↓向下趋势'),COLORFFFFFF;
DRAWTEXT(ISLASTBAR AND MACD>REF(MACD,1),MACD,' ↑上涨柱'),COLOR0000FF;
DRAWTEXT(ISLASTBAR AND MACD<REF(MACD,1),MACD,' ↓下跌柱'),COLOR00FF00;

 

20186218235687976.png

20186218235687976.png

20186218241669822.rar

2.18 KB, 下载次数: 0

售价: 1 金钱  [记录]  [购买]

20186218241669822.rar

回复

使用道具 举报

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

本版积分规则