《矩阵主图指标通达信指标公式源码.docx》由会员分享,可在线阅读,更多相关《矩阵主图指标通达信指标公式源码.docx(4页珍藏版)》请在优知文库上搜索。
1、矩阵主图指标通达信指标公式源码N:=120;:=Barslast(Currbarscount=N);GD:=CoNST(IF(ISLASTBAR=1,HHV(H,K),0);高点DD:=Const(if(Islastbar=I,llv(l,k),o);低点KJr=GD-DD;GD4:=IF(CURRBARSCOUNT=N2,GD,DRAWNULL);高区:IF(CURRBARSCOUNT=N,GD,DRAWNULL),COLORRED,LINETHICK2;低区:IF(CURRBARSCOUNT=N,DD,DRAWNULL),COLOROOFFOO,LINETHICK2;平衡:=IF(CURR
2、BARSCOUNT=N,DD+KJ/2,DRAWNULL),COLOROOFFFF,NODRAW;低:IF(CURRBARSC0UNT=N2,DD,DRAWNULL),COLORFFFFOO;高:IF(CURRBARSC0UNT=N2,GD,DRAWNULL),COLOROOFFFF;支撑:IF(CURRBARSCOUNT=N2,DD+KJ*O.191,DRAWNULL),COLOROOFFFF;强势:IF(CURRBARSCOUNT=N2,DD+KJ*O.382,DRAWNULL),COLORFFOOFF;突破:IF(CURRBARSCOUNT=N2,DD+KJ/2,DRAWNULL),CO
3、LOROOOOFF;警示:IF(CURRBARSC0UNT=N2,DD+KJ*O.618,DRAWNULL),COLOROOFFFF;压力:IF(CURRBARSC0UNT=N2,DD+KJ*O.809,DRAWNULL),COLOROOFFO0;低涨:IF(CURRBARSC0UNT=N2,(CLLV(LOW,K)-1)*100,DRAWNULL),COLOROOOOFF,NODRAW;天数:BARSLAST(L=DD),COLORCYAN,NODRAW;顶点:IF(CURRBARSCOUNT=N2,CONST(IF(ISLASTBAR=1,HHV(H,Barslast(CURRBARSCO
4、UNT=60),1),DRAWNULL),COLORRED,CROSSDOT;低点:IF(CURRBARSC0UNT=200ANDH=顶点,O,C,2,O),COLORBLUE;STICKLINE(CCK=IOOANDL=低点,O,C,2,0),COLORYELLOW;DRAWBAND(高区,RGB(120,20,0),平衡,RGB(0,0,0);DRAWBAND(平衡,RGB(80,OJOO),低区,RGB(0,0,0);DRAWBAND(高,RGB(100,100,0),压力,RGB(0,O,0);DRAWBAND(压力,RGB(O,80,0),警示,RGB(0,0,0);DRAwBAND
5、(警示,RGB(220,120,0),突破,RGB(0,0,0);DRAWBAND(突破,RGB(120,0,120),强势,RGB(0,0,0);DRAWBAND(强势,RGB(120,0,0),支撑,RGB(0,0,0);DRAWBAND(支撑,RGB(80,80,80),低,RGB(0,0,0);STICKLINE(CURRBARSCoUNT=N,GD,DD,0,0),COLORGREEN;STICKLINE(CURRBARSCOUNT=N/2,GD,DD,0,0),C0L0R408080;stickline(Currbarscount=I,gd,dd,o,o),colorgreen;S
6、TICKLINE(CURRBARSC0UNT=N2,支撑,支撑,2,0),COLORFFOOFF;STICKLINE(CURRBARSC0UNT=N2,强势,强势,2,0),COLORFFOOFF;STICKLINE(CURRBARSC0UNT=N2,突破,突破,2,0),COLORABABAB;STICKLINE(CURRBARSC0UNT=N2,警示,警示,2,0),COLOROOFFFF;STICKLINE(CURRBARSC0UNT=N2,压力,压力,2,0),COLOROOFFFF;drawtext(Currbarscount=Io,压力,压力-o.809,),colorooffff
7、;drawtext(Currbarscount=Io,警示,警示-o.6i8,),colorooffff;drawtext(Currbarscount=Io,突破,突破-o.500),CoLoRFFffff;drawtext(Currbarscount=Io,强势,强势-o.382),CoLOROOffff;drawtext(Currbarscount=Io,支撑,支撑-o.191),COLORoOffff;DRAWTEXT(CURRBARSC0UNT=N45,GD-KJ*O.09/【风险区】一高抛避险),COLOROOFFFF;DRAWTEXT(CURRBARSeoUNT=N4+5,GDYJ
8、*0.3/(警示区一逢高减仓),Colorooooff;DRAWTEXT(CURRBARSCoUNT=N4+5,GD-KJ*O.45/突破区一主力拉升),Colorffffff;DRAWTEXT(CURRBARSC0UNT=N45,GD-KJ*O.55/【拉升区】一强势畜锐),C0L0RFFFF80;DRAWTEXT(CURRBARSC0UNT=N4+5,DD+KJ/3,关注区一逢低买入),Colorooffff;DRAWTEXT(CURRBARSC0UNT=N4+5,DDKJ10,【低吸区】一大胆买入),Colorooffoo;DRAWTEXT(CURRBARSC0UNT=N2+40,GD-
9、KJ*O.25/拉升区,),Colorred;DRAWTEXT(CURRBARSC0UNT=N2+40,DD+KJ*O.25/持股区,),COLORYELLOW;第一防线:REFDATE(低,DATE),POINTDOT,COLORYELLOW,LINETHICK4;第二防线:REFDATE(支撑,DATE),POINTDOT,COLORWHITE,LINETHICK4;Drawkline(h,o,l,c);AHC1:二CLOSE*VOL;AHC22:=EMA(EXPMA(AHCI,27)/EXPMA(VOL,27)+EXPMA(AHCI,54)/EXPMA(VOL,54)+EXPMA(AHCI,108)/EXPMA(VOL,108)+EXPMA(AHCI,316)/EXPMA(VOL,316)/4,34);上轨:=1.06*AHC22,C0L0R40FF00,LINETHICK1;下轨:=AHC22*0.94;ZT:=REF(C,1)*1.l-C0.01ANDH=C;启爆:=CRoSS(C,上轨)ORCROSS(C,下轨)ANDZT;DRAWTEXT(启爆,L,启爆),COLORCYAN;STICKLlNE(启爆,C,0,3,1),COLORWHITE;STICKLlNE(启爆,C,0,1,0),COLORGREEN;