贷款计算器

横盘突破与黄金十字抓涨停的分时指标公式

贷款计算器 / 发布时间:2024-07-05 10:00:41

股市中的K线走势与分时走势有急有缓,在涨跌变化中,横盘与其他特殊的分时走势能够判断出个股的重点介入位置,那么这些分时指标的公式是怎样的,其源码应该怎样理解,下面我们通过图例和源码公式进行解析。

  1、横盘突破抓涨停分时主图指标公式

  其中的横盘走势是股价开盘形成的分时走势,包含有横盘、突破、下跌、放量等不同的走势变化,而投资者要做的就是分析其中的买卖点位置。

  均线:IF(BETWEEN(C/(SUM(AMOUNT,0)/SUM(VOL*100,0)),

  1.05,0.95)=0,MA(C,0),(SUM(AMOUNT,0)/SUM(VOL*100,0))),COLORYELLOW;

  均线H:(均线*1.007 ),COLORFF6600;

  均线L:(均线/1.005 ),COLOR00FF00;

  均线横盘:=C<均线H AND C>均线L;

  STICKLINE(均线横盘,均线L,均线,3,0),COLORYELLOW;

  放量:=SUM(VOL,6)>REF(MA(VOL,30),1)*10;

  横盘:=((HHV(CLOSE,BARSCOUNT(CLOSE))-LLV(CLOSE,BARSCOUNT(CLOSE)))/CLOSE)<1;

  横涨:=横盘 AND 放量 AND (C>均线H);

  横跌:=横盘 AND 放量 AND CROSS(均线L,C) ;

  突破:=FILTER(横涨,100);

  下破:=FILTER(横跌,50);

  DRAWTEXT(突破,均线H,'★突破'),COLORFF00FF;

  MA30:=EMA(CLOSE,30);

  强弱界定:EMA(CLOSE,900);

  STICKLINE((MA30>强弱界定),MA30,强弱界定,1,0),COLOR0000FF;

  STICKLINE((MA30<强弱界定),MA30,强弱界定,1,0),COLOR00FF00;

  DRAWICON(CROSS(MA30,强弱界定),H,24);

  上述的源码解说的主要是其中的强弱走势,以及买卖点的位置,在突破的时候就是其中的一个介入点位置。

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

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

  P1:=H1-L1;

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

  支撑:L1+P1*0.5/8,COLOR00DD00;

  CC:CLOSE,COLORWHITE,LINETHICK2;

  STICKLINE(突破>0,支撑,阻力,2,0),COLORRED;

  JX:IF(BETWEEN(C/(SUM(AMOUNT,0)/SUM(VOL*100,0)),

  1.05,0.95)=0,MA(C,0),(SUM(AMOUNT,0)/SUM(VOL*100,0))),COLORYELLOW;

  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),LINETHICK2;

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

  散户买盘:=(A4);

  散户卖盘:=(A5);

  DRAWTEXT_FIX(1,0.000,1-0.05,0,STRCAT(STRCAT('【机构买盘】',CON2STR(机构买盘,2)),'万')),COLORRED;

  DRAWTEXT_FIX(1,0.250,1-0.05,0,STRCAT(STRCAT('【机构卖盘】',CON2STR(机构卖盘,2)),'万')),COLOR00FF00;

  DRAWTEXT_FIX(1,0.500,1-0.05,0,STRCAT(STRCAT('【散户买盘】',CON2STR(散户买盘,2)),'万')),COLORRED;

  DRAWTEXT_FIX(1,0.745,1-0.05,0,STRCAT(STRCAT('【散户卖盘】',CON2STR(散户卖盘,2)),'万')),COLOR00FF00;

  大单买量:=SUM(IF(C>REF(C,1) AND V>4000,V,0),0),NODRAW;

  大单卖量:=SUM(IF(C4000,V,0),0),NODRAW;

  买单总量:=SUM(IF(C>REF(C,1),V,0),0),NODRAW;

  卖单总量:=SUM(IF(C

  小单买量:=买单总量-大单买量,NODRAW;

  小单卖量:=卖单总量-大单卖量,NODRAW;

  DRAWRECTREL(0,1000,147,999.4,IF(120,RGB(10,0,0),1));

  大宗进:=大单买量,NODRAW;

  大宗出:=大单卖量,NODRAW;

  非大宗进:=小单买量,NODRAW;

  非大宗出:=小单卖量,NODRAW;

  主力净流入:=大单买量-大单卖量,COLORRED,NODRAW;

  散户净流入:=小单买量-小单卖量,COLORRED,NODRAW;

  净流入:=买单总量-卖单总量,COLORRED,NODRAW;

  DAZHIV:=CONST(MAX(ABS(大宗进),MAX(ABS(大宗出),MAX(ABS(非大宗进),ABS(非大宗出))))),NODRAW;

  DRAWRECTREL(0,CONST(930-(ABS(大宗进)*250/DAZHIV)),35,950,IF(CONST(大宗进>0),RGB(255,0,0),RGB(0,255,0)));

  DRAWRECTREL(37,CONST(930-(ABS(大宗出)*250/DAZHIV)),72,950,IF(CONST(大宗出>0),RGB(0,255,0),RGB(255,0,0)));

  DRAWRECTREL(75,CONST(930-(ABS(非大宗进)*250/DAZHIV)),110,950,IF(CONST(非大宗进>0),RGB(150,0,0),RGB(0,150,150)));

  DRAWRECTREL(112,CONST(930-(ABS(非大宗出)*250/DAZHIV)),147,950,IF(CONST(非大宗出>0),RGB(0,150,150),RGB(150,0,0)));

  DRAWRECTREL(150,CONST(940-(ABS(净流入)*250/DAZHIV))-20,190,950,IF(CONST(净流入>0),RGB(255,255,0),RGB(23,125,255)));

  DRAWTEXT_FIX(CURRBARSCOUNT=1,0.0001,0.9,0,STRCAT('',CON2STR(大宗进/1,0))),COLORYELLOW;

  DRAWTEXT_FIX(CURRBARSCOUNT=1,0.036,0.9,0,STRCAT('',CON2STR(大宗出/1,0))),COLORYELLOW;

  DRAWTEXT_FIX(CURRBARSCOUNT=1,0.074,0.9,0,STRCAT('',CON2STR(非大宗进/1,0))),COLORYELLOW;

  DRAWTEXT_FIX(CURRBARSCOUNT=1,0.111,0.9,0,STRCAT('',CON2STR(非大宗出/1,0))),COLORYELLOW;

  DRAWTEXT_FIX(CURRBARSCOUNT=1,0.150,0.9,0,STRCAT('',CON2STR(净流入/1,0))),COLORYELLOW;

  DRAWTEXT_FIX(1,0.000,0.99,0,STRCAT(STRCAT('主力 ',CON2STR(主力净流入,0)),'万')),COLORMAGENTA;

  DRAWTEXT_FIX(1,0.078,0.99,0,STRCAT(STRCAT('散户 ',CON2STR(散户净流入,0)),'万')),COLORCYAN;

  DRAWTEXT_FIX(1,0.145,0.99,0,STRCAT(STRCAT('净流入 ',CON2STR(净流入,0)),'万')),COLORYELLOW;

  在公式源码的解析中,能够看出有资金的净流入和流出的资金变化情况,而且表明了股票单数的大小以及买卖单的机会,希望投资者能够把握其中的机会。

  2、黄金十字捕捉涨停分时指标公式

  时间:=TIME2=100000;

  N:=BARSLAST(时间);

  CS1:CONST(IF(N,MAX(REF(HHV(H,0),N),DYNAINFO(4)),HHV(H,0))),DOTLINE,COLORGREEN;

  CS2:CONST(IF(N,MIN(REF(LLV(L,0),N),DYNAINFO(4)),LLV(L,0))),DOTLINE,COLORRED;

  CS3:(CS1+CS2)/2,DOTLINE,COLORYELLOW;

  均价:=AMOUNT/VOL/100,COLORYELLOW,LINETHICK1;

  DRAWNUMBER(CURRBARSCOUNT=2,CS1*1.005,VAR2STR(CS1,3)),COLORYELLOW;

  DRAWNUMBER(CURRBARSCOUNT=2,CS2*0.995,VAR2STR(CS2,3)),COLORYELLOW;

  DRAWTEXT(CS1/CS2<1.03 AND CROSS(C,CS1),CS1*1.005,'买入')COLORRED;

  DRAWTEXT(CS1/CS2<1.03 AND CROSS(CS2,C),CS2*0.995,'卖出')COLORGREEN;

  DRAWICON(CS1/CS2<1.03 AND CROSS(C,CS1),CS1*1.005,9);

  DRAWICON(CS1/CS2<1.03 AND CROSS(CS2,C),CS2*0.9955,2);

  STICKLINE(CS1/CS2<1.03 AND CROSS(C,CS1),CS1*1.1,CS2*0.9,1,0),COLORRED;

  从时间的变化以及走势均价的变化,为投资者标注出了买入和卖出的点位。

财经知识