beyond202104 发表于 2023-8-28 16:32:54

MACD累积换手(通达信公式 副图 源码 测试图)


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;绿柱天数:REF(绿柱天,1),COLORGREEN,LINETHICK0 NODRAW;WWW70822COM: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;




无藤叶晨 发表于 2023-10-24 05:03:50

非常好,赞一个!

14753911111 发表于 2023-10-27 03:16:00

多谢分享下载收藏了

cslixiong 发表于 2024-1-17 11:55:50

厉害了!
页: [1]
查看完整版本: MACD累积换手(通达信公式 副图 源码 测试图)