[通达信] MACD累积换手 通达信副图指标 源码 贴图

[复制链接]
查看91 | 回复0 | 2024-11-29 16:12:04 | 显示全部楼层 |阅读模式
MACD累积换手 通达信副图指标 源码 贴图
指标的用途是:统计红柱区、绿柱区累积换手率
wp1.jpg

DIFF:EMA(CLOSE,12) - EMA(CLOSE,26),COLORWHITE;
DEA:EMA(DIFF,9),COLORYELLOW;
MACD:2*(DIFF-DEA), COLORSTICK,LINETHICK4;
红柱天数:BARSLAST(MACD<0),COLORRED,LINETHICK0 NODRAW;
绿柱天:=BARSLAST(MACD>0) NODRAW;{www.gszb.top}
绿柱天数:REF(绿柱天,1),COLORGREEN,LINETHICK0 NODRAW;
WWWgoodgupiao.comCOM:DRAWNULL,COLORRED;
HSL100:=SUM(VOL/CAPITAL*100,BARSLAST(CROSS(DIFF,DEA))+1)-VOL/CAPITAL*100;
HSL101:=SUM(VOL/CAPITAL*100,BARSLAST(CROSS(DEA,DIFF))+1)-VOL/CAPITAL*100;
HSL102:=SUM(VOL/CAPITAL*100,BARSLAST(CROSS(DIFF,DEA))+1);
HSL103:=SUM(VOL/CAPITAL*100,BARSLAST(CROSS(DEA,DIFF))+1);
DRAWNUMBER(CROSS(DEA,DIFF),0.2,ROUND(HSL100)),COLORRED;
DRAWNUMBER(CROSS(DIFF,DEA),-0.05,ROUND(HSL101)),COLORGREEN;
DRAWNUMBER(MACD>0 AND ISLASTBAR,0.2,ROUND(HSL102)),COLORYELLOW;
DRAWNUMBER(MACD<0 AND ISLASTBAR,-0.05,ROUND(HSL103)),COLORYELLOW;

 

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

本版积分规则

118

主题

0

回帖

1031

积分

职业

积分
1031