• 网站首页
  • 股票知识
  • 股票公式
  • 散户炒股
  • 问答百科
  • 缠中说禅
  • 概念股
  • 【 】【通达信】BBI机构进场主图指标公式

    发布时间: 2020-03-30 13:56 首页:股票一点通>股票公式>通达信公式> 阅读()

    N:=99;M:=32;P1:=80;P2:=100;
    {TS=130,N=99,M=3}
    TS:=130;
    MT:=3;
    DA1:=IF(TS>TOTALBARSCOUNT,TOTALBARSCOUNT,TS);
    DA:=IF(CURRBARSCOUNT>DA1,0,DA1);
    HI:=REFDATE(HHV(H,DA),DATE);
    LO:=REFDATE(LLV(L,DA),DATE);
    C1:=IF(CURRBARSCOUNT=(HI/GZ),V,0),DA);
    LH2:=SUM(IF(C1>=(HI/POW(GZ,2)) AND C1=(HI/POW(GZ,3)) AND C1=(HI/POW(GZ,4)) AND C1=(HI/POW(GZ,5)) AND C1=(HI/POW(GZ,6)) AND C1=(HI/POW(GZ,7)) AND C1=(HI/POW(GZ,8)) AND C1=(LO*GZ) AND C1=LO AND C1=CURRBARSCOUNT,HI*N/100,(HI/GZ),9,0)COLOR656565,LINETHICK3;
    STICKLINE(CEILING(DA*L2/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,1)*N/100,HI/POW(GZ,2),9,0)COLOR656565,LINETHICK3;
    STICKLINE(CEILING(DA*L3/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,2)*N/100,HI/POW(GZ,3),9,0)COLOR656565,LINETHICK3;
    STICKLINE(CEILING(DA*L4/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,3)*N/100,HI/POW(GZ,4),9,0)COLOR656565,LINETHICK3;
    STICKLINE(CEILING(DA*L5/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,4)*N/100,HI/POW(GZ,5),9,0)COLOR656565,LINETHICK3;
    STICKLINE(CEILING(DA*L6/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,5)*N/100,HI/POW(GZ,6),9,0)COLOR656565,LINETHICK3;
    STICKLINE(CEILING(DA*L7/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,6)*N/100,HI/POW(GZ,7),9,0)COLOR656565,LINETHICK3;
    STICKLINE(CEILING(DA*L8/SS)*3>=CURRBARSCOUNT,LO*POW(GZ,2),LO*POW(GZ,3)*N/100,9,0)COLOR656565,LINETHICK3;
    STICKLINE(CEILING(DA*L9/SS)*3>=CURRBARSCOUNT,LO*POW(GZ,1),LO*POW(GZ,2)*N/100,9,0)COLOR656565,LINETHICK3;
    STICKLINE(CEILING(DA*L10/SS)*3>=CURRBARSCOUNT,LO,LO*POW(GZ,1)*N/100,9,0)COLOR656565,LINETHICK3;
    DRAWKLINE(H,O,L,C);
    {机构进场+趋势买卖}
    VAR1:=(C+H+O+L)/4;
    {白线上面要关注,红线上面是买点,买错也要买。}
    VAR3:=LLV(HIGH,240);
    VAR4:=100*(CLOSE-VAR3)/VAR3;
    VAR5:=(CLOSE-LLV(LOW,528))/(HHV(HIGH,528)-LLV(LOW,528))*100;
    VAR6:=(CLOSE-LLV(CLOSE,530))/(HHV(CLOSE,530)-LLV(CLOSE,530))*100;
    VAR7:=0;
    VAR8:=SMA(MAX(CLOSE-REF(CLOSE,1),0),34,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),7,1)*100;
    VAR9:=SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),13,1)*100;
    VAR10:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0);
    VAR11:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)0 OR 买2>0,LOW*0.99,DRAWNULL),CROSSDOT,LINETHICK3,COLORYELLOW;
    DRAWTEXT(买1>0 OR 买2>0,LOW*0.99,’买’),COLORRED;
    S:IF(卖1>0,HIGH*1.01,DRAWNULL),CROSSDOT,LINETHICK3,COLORGREEN;
    DRAWTEXT(卖1>0,HIGH*1.02,’卖’),COLORGREEN;
    DRAWICON((ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)10;
    HS:=VOL/CAPITAL*100, , COLORGREEN;
    VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
    VARF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
    DRAWTEXT(VAR11 AND COUNT(VAR11,30)=1,LOW*0.95,’机构进场’),LINETHICK1,COLORFF00FF;
    VAR1A:=IF(VARE>0,VARE,0);
    VAR1B:=IF(VAR14>=200 AND VAR13>=150,15,IF(VAR1460 AND VAR19LOW AND 卖出MIN(C,O) AND 卖出LOW AND 卖出REF(BBI,1),BBI,DRAWNULL),COLORRED,LINETHICK2;
    下拐:IF(BBIREF(BBI,1) AND CROSS(C,BBI),L*0.97,17);
    DRAWICON(BBI9.8,AMOUNT,AMOUNT/((H-L)*2-ABS(O-C))*(C-L));
    买%:=买/AMOUNT*100;
    流入:=AMOUNT*买%/10000000000;
    流出:=AMOUNT/100000000-流入;
    净流:=(流入-流出);
    总额3:=SUM(AMOUNT,3);
    流入3:=SUM(流入,3);
    流出3:=SUM(流出,3);
    净流3:=SUM(流入-流出,3);
    总额5:=SUM(AMOUNT,5);
    流入5:=SUM(流入,5);
    流出5:=SUM(流出,5);
    净流5:=SUM(流入-流出,5);
    总额10:=SUM(AMOUNT,10);
    流入10:=SUM(流入,10);
    流出10:=SUM(流出,10);
    净流10:=SUM(流入-流出,10);
    画:=CONST(FINDHIGH(总额10,0,190,1));
    DRAWTEXT_FIX(1,0.71,0.07,0,’净流(亿):’),COLORMAGENTA,LINETHICK1;
    DRAWTEXT_FIX(1,0.78,0.05,0,’1日’),COLORMAGENTA,LINETHICK1;
    DRAWTEXT_FIX(1,0.83,0.05,0,’3日’),COLORMAGENTA,LINETHICK1;
    DRAWTEXT_FIX(1,0.88,0.05,0,’5日’),COLORMAGENTA,LINETHICK1;
    DRAWTEXT_FIX(1,0.93,0.05,0,’10日’),COLORMAGENTA,LINETHICK1;
    DRAWNUMBER_FIX(1,0.78,0.10,0,CONST((净流))),COLORYELLOW;
    DRAWNUMBER_FIX(1,0.83,0.10,0,CONST((净流3))),COLORYELLOW;
    DRAWNUMBER_FIX(1,0.88,0.10,0,CONST((净流5))),COLORYELLOW;
    DRAWNUMBER_FIX(1,0.93,0.10,0,CONST((净流10))),COLORYELLOW;

    特别声明:文章内容仅供参考,不造成任何投资建议。投资者据此操作,风险自担。

    网站首页-股票知识--股票公式-散户炒股-问答百科--缠中说禅-概念股

    未经本站书面特别授权,请勿转载或建立镜像

    Copyright @ 2020 All Rights Reserved.版权所有 XMl地图
    Baidu
    map