公式指标论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

通达信MACD红柱和绿柱天数副图指标 源码 贴图

2024-1-6 22:20| 发布者: | 查看: 231| 评论: 0

通达信MACD红柱和绿柱天数副图指标 源码 贴图

通达信MACD红柱和绿柱天数副图指标 源码 贴图

通达信MACD红柱和绿柱天数副图指标 源码 贴图

DIFF:EMA(CLOSE,12)-EMA(CLOSE,26),COLORWHITE;
DEA:EMA(DIFF,9),COLORYELLOW;
MACD:2*(DIFF-DEA),COLORSTICK,LINETHICK4;
绿柱天:=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);
红柱天数:BARSLAST(MACD< 0),COLORRED,NODRAW;
绿柱天数:REF(绿柱天,1),COLORGREEN,NODRAW;
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;



鲜花

握手

雷人

路过

鸡蛋
返回顶部