资源描述:
《【股票指标公式下载】-【通达信】macd主升(柱状线、主升浪消失)》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、【通达信】MACD主升(柱状线、主升浪消失)-指标公式源码DIF1:=EMA(CLOSE,12)-EMA(CLOSE,26),COLOR00FF00,LINETHICK1;DEA1:=EMA(DIF1,9),COLOR00FF00,LINETHICK1;DRAWICON(CROSS(DIF1,DEA1),DEA1,1);DRAWICON(CROSS(DEA1,DIF1),DEA1,2);{主升浪消失出局}DI:=EMA(CLOSE,4)-EMA(CLOSE,13),COLORMAGENTA,LINETHICK2;D1:=EMA(DI,5),COLORGRAY;D2:=EMA(D
2、I,10),COLORGRAY;D3:=EMA(DI,20),COLORGRAY;D4:=EMA(DI,30),COLORGRAY;D5:=EMA(DI,60),COLORGRAY;D6:=EMA(DI,90),COLORGRAY;D7:=EMA(DI,120),COLORGRAY;D8:=EMA(DI,250),COLORGRAY;AA:=STICKLINE(DI>=REF(DI,1)ANDD1>=REF(D1,1)ANDD2>=REF(D2,1)ANDD3>=REF(D3,1)ANDD4>=REF(D4,1)ANDD5>=REF(D5,1)ANDD6>=REF(D6,1)A
3、NDD7>=REF(D7,1)ANDD8>=REF(D8,1)ANDC>EMA(C,11)ANDDI>-0.8,DI,0,2,0),COLORRED;STICKLINE(AA,DIF1,DEA1,3,0),COLORE6E8FA;{柱状线}MACD1:=(DIF1-DEA1)*2;STICKLINE(MACD1>REF(MACD1,1),0,MACD1,3.2,0),COLOR0000FF;STICKLINE(MACD1>REF(MACD1,1),0,MACD1,2.7,0),,COLOR0000FF;STICKLINE(MACD1>REF(MACD1,1),0,MACD1,2
4、.1,0),COLOR0000FF;STICKLINE(MACD1>REF(MACD1,1),0,MACD1,1.5,0),COLOR0000FF;STICKLINE(MACD1>REF(MACD1,1),0,MACD1,0.9,0),COLOR0000FF;STICKLINE(MACD1>REF(MACD1,1),0,MACD1,0.3,0),COLORCC66FF;STICKLINE(MACD15、F9900;STICKLINE(MACD1[=0ORMACD1<=0,0,0,50,1),COLORWHITE;{买点提示}A1:=BA]
6、RSLAST(REF(CROSS(DIF1,DEA1),1));BL:=REF(CLOSE,A1+1)>CLOSEANDDIF1>REF(DIF1,A1+1)ANDCROSS(DIF1,DEA1);{STICKLINE(BL,0,1,2,0),COLOR00FF00;}DRAWICON(BL,DEA1,23);A2:=BARSLAST(REF(CROSS(DEA1,DIF1),1));DBL:=REF(CLOSE,A2+1)DIF1ANDCROSS(DEA1,DIF1);DRAWICON(DBL,DEA1,12);低位金叉:=CR
7、OSS(DIF1,DEA1)ANDDIF1<-0.1;DRAWTEXT(低位金叉,DIF1,'低位金叉');JCCOUNT:=COUNT(CROSS(DIF1,DEA1),BARSLAST(DEA1>=0));二次金叉:=CROSS(DIF1,DEA1)ANDDEA1<0ANDCOUNT(JCCOUNT=2,21)=1;DRAWICON(二次金叉,DEA1*1.04,13);DRAWTEXT(二次金叉,-0.1,'二次金叉'),COLORFF00FF;A10:=BARSLAST(REF(CR