MACD平均换手副图指标 通达信 贴图 无加密

[复制链接]
查看22 | 回复0 | 2022-7-11 09:59:58 | 显示全部楼层 |阅读模式
红绿柱区平均换手,还有点复杂,为了准确点,浪费了不少脑细胞

{MACD平均换手}
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;
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/BARSLAST(CROSS(DIFF,DEA)))*100)/100),COLORRED;
DRAWNUMBER(CROSS(DIFF,DEA),-0.05,ROUND((HSL101/BARSLAST(CROSS(DEA,DIFF)))*100)/100),COLORGREEN;
DRAWNUMBER(MACD>0 AND ISLASTBAR,MACD,ROUND((HSL102/(BARSLAST(CROSS(DIFF,DEA))+1))*100)/100),COLORRED;
DRAWNUMBER(MACD<0 AND ISLASTBAR,-0.05,ROUND((HSL103/(BARSLAST(CROSS(DEA,DIFF))+1))*100)/100),COLORGREEN;



20209208591725933.png

20209208591725933.png

202092098374405.rar

2.17 KB, 下载次数: 0

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

202092098374405.rar

回复

使用道具 举报

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

本版积分规则