相关简介:通达信分时图抓涨停指标源码分享

     通达信指标公式源码概况:

  指标类别:通达信指标公式

  授权方式:免费版

  指标评级:★★★★★

  指标分类:策略

  画线方法:副图

使用说明:

1、白的不看

2、底下一根粗蓝线,一根粗绿线

3、一根红着出来的红绿粗线主要就是首先找到有交叉的然后按最强原则优选

3、操作思路:粗蓝线和粗绿线一起上穿粗红绿线

分时图主力买卖线(指标、副图、通达信、贴图)无未来、加密源码下载:

需要注意的是,较为准确的进场与出场需要结合其他指标,此指标只是大概率事件,不保证每支股票以及每次准确。

通达信指标公式源码:

   现价:CLOSE,COLORFFFFFF,LINETHICK2;

   均价:SUM(C*V,240)/SUM(V,240),COLORYELLOW,LINETHICK2;

   H1:=MAX(DYNAINFO(3),DYNAINFO(5));

   L11:=MIN(DYNAINFO(3),DYNAINFO(6));

   P1:=H1-L11;

   阻力:L11+P1*7/8,COLOR00DD00;

   支撑:L11+P1*0.5/8,COLORMAGENTA;

   中:阻力*0.5+支撑*0.5,DOTLINE;

   STICKLINE(CROSS(支撑,现价),中,现价,2,0),COLORYELLOW,LINETHICK5;

   STICKLINE(CROSS(现价,阻力),现价,中,2,0),COLORFFCC66,LINETHICK5;

   DRAWTEXT(LONGCROSS(支撑,C,2),C,’–反弹’),COLORYELLOW;

   DRAWTEXT(LONGCROSS(C,阻力,2),C,’–出货’),COLORYELLOW;

   A1:=(Dvol/C)/2,NODRAW;

   A2:=SUM(IF(A1>100ANDCLOSE>REF(CLOSE,1),A1,0),0);

   A3:=SUM(IF(A1>100ANDCLOSE<REF(CLOSE,1),A1,0),0);

   A4:=SUM(IF(A1<100ANDCLOSE>REF(CLOSE,1),A1,0),0);

   A5:=SUM(IF(A1<100ANDCLOSE<REF(CLOSE,1),A1,0),0);

   A6:=A2+A3+A4+A5;

   A7:=IF((BARSTATUS=2),((100*A2)/A6),0);

   A8:=((IF((BARSTATUS=2),((100*A3)/A6),0)));

   A9:=((IF((BARSTATUS=2),((100*A4)/A6),0)));

   A10:=((IF((BARSTATUS=2),((100*A5)/A6),0)));

   机构买盘:=(A2),LINETHICK2;

   机构卖盘:=(A3),LINETHICK2;

   散户买盘:=(A4);

   散户卖盘:=(A5);

   机构买:=(A2),LINETHICK6,COLORRED;

   机构卖:=(A3),LINETHICK6,COLORGREEN;

   DD1:=1;

   AAA1:=STRCAT(STRCAT(‘机构买’,CON2STR((100*A2)/A6,0)),’%’);

   AAA2:=STRCAT(STRCAT(‘机构卖’,CON2STR((100*A3)/A6,0)),’%’);

   AAA3:=STRCAT(STRCAT(‘净买入’,CON2STR((100*(A2-A3))/A6,0)),’%’);

   DRAWTEXT_FIX(DD1=1,0,0.04,0,AAA1),COLORRED;

   DRAWTEXT_FIX(DD1=1,0,0.12,0,AAA2),COLORGREEN;

   DRAWTEXT_FIX(DD1=1,0,0.20,0,AAA3),COLOR00FFFF;

   A11:=C>REF(C,4);

   NT:=BARSLASTCOUNT(A11);

   TJ11:=NT=9;

   TJ13:=ISLASTBARANDBETWEEN(NT,5,8);

   AY:=(BACKSET(TJ11>0,9)ORBACKSET(TJ13>0,NT))*NT;

   DRAWTEXT(AY>0,H*1.001,VAR2STR(AY,0)),COLORFF00FF;

   DRAWTEXT(NT=9,H*1.001,’9′),COLORGREEN;

   B1:=C<REF(C,4);

   NT0:=BARSLASTCOUNT(B1);

   TJ21:=NT0=9;

   TJ23:=ISLASTBARANDBETWEEN(NT0,5,8);

   AY1:=(BACKSET(TJ21>0,9)ORBACKSET(TJ23>0,NT0))*NT0;

   DRAWTEXT(AY1>0,L*0.999,VAR2STR(AY1,0)),COLORFF00FF;

   DRAWTEXT(NT0=9,L*0.999,’9′),COLORGREEN;

   ZRS:=CONST(DYNAINFO(3)),NODRAW;

   A12:=3.5*(EMA(CLOSE,48)-EMA(CLOSE,104))+ZRS,COLORLIMAGENTA;

   A22:=EMA(A12,36),COLORLIBLUE;

   MACD:=(A12-A22)*2+ZRS;

   DRAWKLINE(H,O,L,C);

   STICKLINE(A12>=A22,ZRS,MACD,0,0),COLORRED;

   STICKLINE(A12>=A22ANDMACD<REF(MACD,1),ZRS,MACD,0,0),COLORYELLOW;

   STICKLINE(A12<A22,ZRS,MACD,0,0),COLORCYAN;

   STICKLINE(A12<A22ANDMACD>REF(MACD,1),ZRS,MACD,0,0),COLORFFFFFF;

   A1:=(vol/CLOSE)/3;

   A2:=SUM((IF(((A1>40)AND(CLOSE>(REF(CLOSE,1)))),A1,0)),0);

   A3:=SUM((IF(((A1>40)AND(CLOSE<(REF(CLOSE,1)))),A1,0)),0);

   A4:=SUM((IF(((A1<40)AND(CLOSE>(REF(CLOSE,1)))),A1,0)),0);

   A5:=SUM((IF(((A1<40)AND(CLOSE<(REF(CLOSE,1)))),A1,0)),0);

   A6:=((A2+A3)+A4)+A5;

   A7:=IF((BARstATUS=2),((100*A2)/A6),0);

   A8:=((IF((BARSTATUS=2),((100*A3)/A6),0)));

   A9:=((IF((BARSTATUS=2),((100*A4)/A6),0)));

   A10:=((IF((BARSTATUS=2),((100*A5)/A6),0)));

   机构买盘:(A2),LINETHICK3,COLORFF55FF;

   机构卖盘:(A3),LINETHICK3,COLORFFFF55;

   散户买盘:(A4),COLOR5555FF;

   散户卖盘:(A5),COLOR55FF55;

   DRAWTEXTREL(1003,870,’机构买盘’),LINETHICK2,COLORFF55FF;

   DRAWTEXTREL(1003,570,’机构卖盘’),LINETHICK2,COLORFFFF55;

   DRAWTEXTREL(1003,320,’散户买盘’),LINETHICK2,COLOR5555FF;

   DRAWTEXTREL(1003,50,’散户卖盘’),LINETHICK2,COLOR55FF55;

   IF((BARSTATUS=2))THENDRAWTEXTREL(1020,750,”+FLOOR(A7)+’%’),LINETHICK2,COLORFF55FF;

   IF((BARSTATUS=2))THENDRAWTEXTREL(1020,460,”+FLOOR(A8)+’%’),LINETHICK2,COLORFFFF55;

   IF((BARSTATUS=2))THENDRAWTEXTREL(1020,200,”+FLOOR(A9)+’%’),LINETHICK2,COLOR5555FF;

   IF((BARSTATUS=2))THENDRAWTEXTREL(1020,-50,”+FLOOR(A10)+’%’),LINETHICK2,COLOR55FF55;

[源码注释]通达信公式动态翻译结果

ZT赋值:收盘价=计算涨停价

输出XG:1日前的ZT AND 成交量(手)<1日前的成交量(手) AND ((1日前的收盘价-收盘价)/1日前的收盘价)*100>6

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。