Login
首页 > 教程资料 > 量价分析

机构K线 通达信 MACD(通达信不显示K线)

佚名 2024-10-30 09:10:50 人看过

  通达信MACD多周期同屏呈现指标 分享

  工欲善其事必先利其器。最近看MACD来回切周期可把我麻烦坏了,想着要是有同屏解决的方法或者指标就好了,问了问已经退市养老的老师父,还真有,正好大家可能也需要,我也分享出来,相当于备份了。

  都是老司机其他不说,股票的应用当30 60分钟日线穿周线时候是不是趋势,主升浪,选择这种配合当下题材,又或者强势股回调,找30 60分共振切入等等,自己学会多发掘用法,还是那句指标非万能,参考就好!!!

  主要用于看各种时间段MACD,通达信看行情引用日线级别以下的周期函数显示不了,又不想用多图界面变小,解决来回切换不同周期看MACD的辛苦。

  大家好,分享一个MACD背离指标,,,,注意:此指标含有未来函数,谨慎使用

  DIF1:=EMA(CLOSE,12) - EMA(CLOSE,27),LINETHICK1.5;

  DEA1:=EMA(DIF1,9),LINETHICK1.3;

  MACD1:=2*(DIF1-DEA1),STICK;

  MACD2:=EMA(MACD1,3);

  STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,3.0,0),COLOR1D0123;

  STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,2.5,0),COLOR390147;

  STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,1.8,0),COLOR57026C;

  STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,1.3,0),COLOR770394;

  STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,0.8,0),COLOR8F02B3;

  STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,0.3,0),COLORA203C9;

  STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,0.03,0),COLORDB53FD;

  STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,3.0,0),COLOR555555;

  STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,2.5,0),COLOR777777;

  STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,1.8,0),COLOR999999;

  STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,1.3,0),COLORBBBBBB;

  STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,0.8,0),COLORDDDDDD;

  STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,0.3,0),COLORFFFFFF;

  STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,0.03,0),COLORFAFAFA;

  STICKLINE(MACD1

  STICKLINE(MACD1

  STICKLINE(MACD1

  STICKLINE(MACD1

  STICKLINE(MACD1

  STICKLINE(MACD1

  STICKLINE(MACD1

  STICKLINE(MACD1>=0 OR MACD1<=0,0,0,50,1),COLORWHITE;

  DIF:DIF1,COLOR0000FF;

  DEA:DEA1,COLORYELLOW;

  MACD:MACD1,NODRAW,COLORMAGENTA;

  金1:CROSS(DIF1,DEA1) AND DIF1<-0.1;

  JCCOUNT:=COUNT(CROSS(DIF1,DEA1),BARSLAST(DEA1>=0));

  二金:=CROSS(DIF1,DEA1) AND DEA1<0 AND COUNT(JCCOUNT=2,21)=1;

  STICKLINE(二金,0,0.5,6,0),COLOR040E86;

  STICKLINE(二金,0,0.5,4,0),COLOR061AC4;

  STICKLINE(二金,0,0.5,2,0),COLOR090FF9;

  STICKLINE(二金,0,0.5,0.3,0),COLOR45ACF8;

  STICKLINE(二金,0,0.5,0.1,0),COLORBBE1F9;

  DRAWICON(二金,DEA1*0.9,1) ;

  DRAWTEXT(二金,0.4,' 二金'),COLORYELLOW;

  强度:IF(DIF1>=DEA1,DIF1,DRAWNULL),COLORRED,LINETHICK2;

  A1:=BARSLAST(REF(CROSS(DIF1,DEA1),1));

  底背离:=REF(CLOSE,A1+1)>CLOSE AND DIF1>REF(DIF1,A1+1) AND CROSS(DIF1,DEA1);

  STICKLINE(底背离,0,0.25,6,0),COLOR264101;

  STICKLINE(底背离,0,0.25,4,0),COLOR008000;

  STICKLINE(底背离,0,0.25,2,0),COLOR00FF80;

  STICKLINE(底背离,0,0.25,0.3,0),COLOR00FFFF;

  底背:DRAWLINE(A1=0,DEA1,底背离,DEA1,0)COLORYELLOW,LINETHICK5;

  DRAWTEXT(底背离,0.1,' 底背'),COLORYELLOW;

  A2:=BARSLAST(REF(CROSS(DEA1,DIF1),1));

  顶背离:=REF(CLOSE,A2+1)DIF1 AND CROSS(DEA1,DIF1);

  顶背:DRAWLINE(A2=0,DEA1,顶背离,DEA1,0)COLORLICYAN,LINETHICK4.5;

  DRAWTEXT(顶背离,0.1,'顶背'),COLORGREEN;

  {OBV判势}

  OBV:=DIF;

  P:=5;

  AA1:=REF(OBV,P)=HHV(OBV,2*P+1);

  B1:=FILTER(AA1,P);

  C1:=BACKSET(B1,P+1);

  D1:=FILTER(C1,P);

  {高点}

  AA2:=REF(OBV,P)=LLV(OBV,2*P+1);

  B2:=FILTER(AA2,P);

  C2:=BACKSET(B2,P+1);

  D2:=FILTER(C2,P);

  {低点}

  上:REF(OBV,BARSLAST(D1)),COLORFF00FF,NODRAW;

  下:REF(OBV,BARSLAST(D2)),COLOR00FF00,NODRAW;

  向上:CROSS(OBV,上*1.01),NODRAW;

  相对能量:(OBV-下)/(上-下)*100,COLORYELLOW,NODRAW;

  R11:=BACKSET(ISLASTBAR,BARSLAST(D1)+1);

  S11:=R11>REF(R11,1);

  压力:DRAWLINE(D1,OBV,S11,OBV,1),COLOR0080FF;

  T11:=BACKSET(ISLASTBAR,BARSLAST(D2)+1);

  U11:=T11>REF(T11,1);

  支撑:DRAWLINE(D2,OBV,U11,OBV,1),COLORFF0000;

  STICKLINE(C>0,下,下,1,0),COLOR00FF00;

  STICKLINE(C>0,上,上,1,0),COLORFF00FF;

  DRAWTEXT(CROSS(OBV,上*1.01),上,'上'),COLORYELLOW;

  DRAWTEXT(CROSS(下*0.99,OBV),下,'下'),COLORYELLOW;

  {金叉共振及三全项}

  DRAWICON(D1,OBV,39);

  DRAWICON(D2,OBV,38);

  金手:CROSS(DIF,DEA) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));

  DRAWTEXT(金手,0.1,'★九王金手'),COLORYELLOW;

  DRAWTEXT(金1 AND 二金 AND 底背离,0.25,'金手指'),COLORYELLOW,LINETHICK2;

版权声明:倡导尊重与保护知识产权。未经许可,任何人不得复制、转载、或以其他方式使用本站《原创》内容,违者将追究其法律责任。本站文章内容,部分图片来源于网络,如有侵权,请联系我们修改或者删除处理。

编辑推荐

热门文章

运用大厂严格培训标准
拥有海量精品培训课程
汇聚众多行业优质机构
打造完善职业教育体系
正规监管 工商认证 工商监管
Copyright © 2012-2024金线投资 版权所有
网站备案号:琼ICP备xxxxxxxx号
本站访客:188