资源描述:
《通达信macd拐点指标公式》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、通达信MACD拐点指标公式VAR1:=EMA(EMA(CLOSE,13),13);控盘指数:(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000,POINTDOT,COLORFFCCCC;STICKLINE(控盘指数<0,控盘指数,0,2,0),COLORGRAY;无庄控盘:控盘指数<0,LINETHICK0,COLORGRAY;STICKLINE(控盘指数>REF(控盘指数,1)AND控盘指数>0AND控盘指数<3,控盘指数,0,2,1),COLORRED;STICKLINE(控盘指数>REF(控盘指数
2、,1)AND控盘指数>0AND控盘指数>3,控盘指数,0,2,1),COLORRED;STICKLINE(控盘指数>REF(控盘指数,1)AND控盘指数>3,控盘指数,3,4,1),COLORFF00FF;主力控盘:控盘指数>REF(控盘指数,1)AND控盘指数>0,LINETHICK0,COLORRED;STICKLINE(控盘指数[0,控盘指数,0,2,0),COLOR00FF00;控盘减弱:控盘指数][0,LINETHICK0,COLOR00F]
3、F00;VARA:=EMA(0.667*REF(控盘指数,1)+0.333*控盘指数,2);STICKLINE(控盘指数>VARA,控盘指数,VARA,2,0),COLORRED;B2:=控盘指数>VARA;准备:B2>REF(B2,1)AND控盘指数<(-2),COLORYELLOW;DRAWTEXT(准备,3,'准备'),COLORYELLOW;B1:=(控盘指数>REF(控盘指数,1)AND控盘指数>0)=1;开始控盘:B1>REF(B1,1),COLORMAGENTA,LINETHICK3;A:=(3*C+L+O+
4、H)/6;X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+REF(A,20))/210;MTM:=C-REF(C,1);DX
5、:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);CB:=EMA(X,13);买:=IF(LLV(DX,2)=LLV(DX,7)ANDCOUNT(DX<0,2)ANDCROSS(DX,MA(DX,2)),1,0);DRAWICON(FILTER(买=1,5),L*0.11,1);DIFF:(EMA(CLOSE,12)-EMA(CLOSE,26))*20,COLORWHITE,LINETHICK1;DEA:EMA(DIFF,9),COLORYELLOW,LINETHICK1;MAC
6、D:2*(DIFF-DEA),COLORSTICK;MACD1:=2*(DIFF-DEA),COLORRED,NODRAW;MACD2:=EMA(MACD1,3),COLORCYAN,NODRAW;STICKLINE(MACD1>MACD2ANDMACD1>0,0,MACD1,2,0),COLORRED;STICKLINE(MACD1>MACD2ANDMACD1<0,0,MACD1,2,0),COLORYELLOW;STICKLINE(MACD17、<0;S2:=(MACD>=0);S3:=BARSLAST(CROSS(DIFF,DEA));S4:=REF(S3,S3+1);S5:=DEA>REF(DEA,S4);S6:=DEA;上成立:=CROSS(DIFF,DEA)ANDS5;下成立:=CROSS(DIFF,DEA)ANDS6;L1:=(EMA(CLOSE,3)-EMA(CLOSE,13));L2:=EMA(L1,9);L3:=BARSLAST(CROSS(L1,L2));L4:=REF(L3,L3+1);L5:=L2;变盘:CROSS(L1,L2)ANDL5,N
8、ODRAW,COLORD6FF9C;STICKLINE(变盘,5,0,0,1),COLORD6FF9C;LS:=IF(DIFF>DEAANDDIFF>0,1,0);加速上扬:IF(REF(LS=0,1)ANDLS=1,0.1,0);XG1:CROSS(MACD1,MACD2)ANDMACD1<0,NOD