发布自用马刺副图指标源码

[复制链接]
查看34 | 回复0 | 2022-7-24 06:22:41 | 显示全部楼层 |阅读模式

 


DIFF : EMA(CLOSE,4) - EMA(CLOSE,26);
 DEA : EMA(DIFF,9);

 MACD:2*(DIFF-DEA),COLORSTICK;
 MACD放大:MACD-REF(MACD,1),LINETHICK0;

 DRAWTEXT(CROSS(DIFF,DEA ) ,MACD,'㊣'),COLORYELLOW; {后2句是横位置对齐}

 

MM:=IF(MACD< 0,MACD,0);
 JJ:=MM> REF(MM,1);
 ZZ:=REF(JJ,1)=1;
介入区:=(JJ AND ZZ)*DEA{,POINTDOT,COLORRED};
 {MACD蓝柱缩短}
STICKLINE(介入区=DEA,DEA,DIFF,3,0),COLORRED;


低金:=CROSS(DIFF,DEA) AND DIFF<-0.1;
 DRAWTEXT(低金,-0.85,'↑'),COLORRED;

回复

使用道具 举报

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

本版积分规则