股票-通达信MACD拐点指标公式.docx

上传人:安*** 文档编号:17749295 上传时间:2022-05-26 格式:DOCX 页数:8 大小:88.93KB
返回 下载 相关 举报
股票-通达信MACD拐点指标公式.docx_第1页
第1页 / 共8页
股票-通达信MACD拐点指标公式.docx_第2页
第2页 / 共8页
点击查看更多>>
资源描述

《股票-通达信MACD拐点指标公式.docx》由会员分享,可在线阅读,更多相关《股票-通达信MACD拐点指标公式.docx(8页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。

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(控盘指数,1)AND控盘指数0AND控盘指数3,控盘指数,0,2,1),COLORR

2、ED;STICKLINE(控盘指数REF(控盘指数,1)AND控盘指数3,控盘指数,3,4,1),COLORFF00FF;主力控盘:控盘指数REF(控盘指数,1)AND控盘指数0,LINETHICK0,COLORRED;STICKLINE(控盘指数REF(控盘指数,1)AND控盘指数0,控盘指数,0,2,0),COLOR00FF00;控盘减弱:控盘指数REF(控盘指数,1)AND控盘指数0,LINETHICK0,COLOR00FF00;VARA:=EMA(0.667*REF(控盘指数,1)+0.333*控盘指数,2);STICKLINE(控盘指数VARA,控盘指数,VARA,2,0),COLO

3、RRED;B2:=控盘指数VARA;准备:B2REF(B2,1)AND控盘指数(-2),COLORYELLOW;DRAWTEXT(准备,3,准备),COLORYELLOW;B1:=(控盘指数REF(控盘指数,1)AND控盘指数0)=1;开始控盘:B1REF(B1,1),COLORMAGENTA,LINETHICK3;A:=(3*C+L+O+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(

4、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:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);CB:=EMA(X,13);买:=IF(LLV(DX,2)=LLV(DX,7)ANDCOUNT(DX0,2)ANDCROSS(DX,MA(DX,2),1,0);DRAWICON(FILTER(买=1,5),L*0.11,1);DIFF:(

5、EMA(CLOSE,12)-EMA(CLOSE,26)*20,COLORWHITE,LINETHICK1;DEA:EMA(DIFF,9),COLORYELLOW,LINETHICK1;MACD:2*(DIFF-DEA),COLORSTICK;MACD1:=2*(DIFF-DEA),COLORRED,NODRAW;MACD2:=EMA(MACD1,3),COLORCYAN,NODRAW;STICKLINE(MACD1MACD2ANDMACD10,0,MACD1,2,0),COLORRED;STICKLINE(MACD1MACD2ANDMACD10,0,MACD1,2,0),COLORYELLOW

6、;STICKLINE(MACD1MACD2,0,MACD1,1,0),COLORGREEN;S1:=MACDS2:=(MACDS3:=BARSLAST(CROSS(DIFF,DEA);S4:=REF(S3,S3+1);S5:=DEAREF(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)A

7、NDL5,NODRAW,COLORD6FF9C;STICKLINE(变盘,5,0,0,1),COLORD6FF9C;LS:=IF(DIFFDEAANDDIFF0,1,0);加速上扬:IF(REF(LS=0,1)ANDLS=1,0.1,0);XG1:CROSS(MACD1,MACD2)ANDMACD10,NODRAW;XG2:CROSS(DIFF,DEA),NODRAW;M1:=MACDREF(MACD,1)ANDDIFF绿柱短了:M1ANDCOUNT(M1,10)=1ANDCMA(C,55)ANDCOUNT(MACD0,5)=5,NODRAW;DRAWTEXT(绿柱短了,MACD,买点来了DI

8、FL:=EMA(V,12)-EMA(V,26);DIF:=EMA(C,12)-EMA(C,26);BL:=DIFLREF(DIFL,1)ANDDIFREF(DIF,1);四天:REF(BL,3)=1ANDREF(BL,2)=1ANDREF(BL,1)=1ANDBL;三天:REF(BL,2)=1ANDREF(BL,1)=1ANDBL;VERTLINE(上成立,3),COLORYELLOW;VERTLINE(下成立,3),COLORRED;IF(DIFFDEA,DIFF,DRAWNULL),COLORFF11CC,LINETHICK1;IF(DIFFDEAANDDIFF0,DIFF,DRAWNUL

9、L),COLORRED,LINETHICK1;RSV:=(CLOSE-LLV(LOW,9)/(HHV(HIGH,9)-LLV(LOW,9)*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);DRAWTEXT(FILTER(D80,6),H*1.018,D80DRAWTEXT(FILTER(CROSS(K,D)ANDD26,6),H*0.95,KD低位金叉),COLORFFCCCC;STICKLINE(FILTER(CROSS(K,D)ANDD26,6),H*0.97,H*0.95,4,0),COLORFFCCCC;DIFFF:=EMA(CLOSE,12)-EMA(CLOSE,

10、26);DEAF:=EMA(DIFFF,9);MACDD:=2*(DIFFF-DEAF);DRAWTEXT(FILTER(CROSS(DIFFF,DEAF)ANDDEAF0,6),L-0.02,MACD低位金叉),COLORRED;STICKLINE(FILTER(CROSS(DIFFF,DEAF)ANDDEAF0,6),L-0.02,L-0.1,4,0),COLOR00FF00;DRAWTEXT(FILTER(CROSS(DIFFF,DEAF)ANDDEAF0,13),H+0.25,MACD下拐点),COLORYELLOW;STICKLINE(FILTER(CROSS(DIFFF,DEAF)

11、ANDDEAF0,13),H+0.02,H+0.12,4,0),COLORBLUE;DRAWTEXT(FILTER(CROSS(MACDD,0),13),L*0.65,MACD上拐点),COLORRED;STICKLINE(FILTER(CROSS(MACDD,0),13),L*0.97,L*0.95,4,0),COLORWHITE;ROC:=(CLOSE-REF(CLOSE,21)/REF(CLOSE,21)*100;DRAWTEXT(FILTER(CROSS(ROC,0),6),L-2.25,骗线拐点),COLORWHITE;STICKLINE(FILTER(CROSS(ROC,0),6),L-0.02,L-0.15,4,0),COLORFF00FF;通达信MACD拐点指标公式实例图解:通达信MACD拐点指标公式

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 技术资料 > 技术总结

本站为文档C TO C交易模式,本站只提供存储空间、用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。本站仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知淘文阁网,我们立即给予删除!客服QQ:136780468 微信:18945177775 电话:18904686070

工信部备案号:黑ICP备15003705号© 2020-2023 www.taowenge.com 淘文阁