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

 

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;

 

上一篇:造福通达信的指标源码--涨跌停    下一篇:通达信顶天立地源码附图