首頁 > 股票投資 > 股票技術(shù)指標(biāo)公式 > 正文

BBI強(qiáng)勢選股+指標(biāo)主圖股票公式源碼

來源:【贏家江恩】責(zé)任編輯:fanxiaonan添加時間:2016-07-02 09:43:01
  在股市技術(shù)指標(biāo)的應(yīng)用中,很多的指標(biāo)都能夠判斷出股票的買賣點位置,比如是bbi指標(biāo)是多空指數(shù),也可以顯示買入和賣出的信號,其基本的走勢變化可以運用股票公式源碼進(jìn)行表示,有基礎(chǔ)的指標(biāo)公式源碼,有強(qiáng)勢選股的公式,下面一一進(jìn)行介紹!

  //bbi指標(biāo)主圖公式

  {智能輔助線}

  HHJSJDA:=(3*CLOSE+OPEN+LOW+HIGH)/6;

  HHJSJDB:(20*HHJSJDA+19*REF(HHJSJDA,1)+18*REF(HHJSJDA,2)+17*REF(HHJSJDA,3)+16*REF(HHJSJDA,4)+15*REF(HHJSJDA,5)+14*REF(HHJSJDA,6)

  +13*REF(HHJSJDA,7)+12*REF(HHJSJDA,8)+11*REF(HHJSJDA,9)+10*REF(HHJSJDA,10)+9*REF(HHJSJDA,11)+8*REF(HHJSJDA,12)

  +7*REF(HHJSJDA,13)+6*REF(HHJSJDA,14)+5*REF(HHJSJDA,15)+4*REF(HHJSJDA,16)+3*REF(HHJSJDA,17)+2*REF(HHJSJDA,18)+

  REF(HHJSJDA,20))/210,COLORYELLOW;

  HHJSJDC:MA(HHJSJDB,5),COLORRED;

  {流量幅和行業(yè)板塊}

  總額:=AMOUNT;

  買1:=IF(O=C AND (C-REF(C,1))/REF(C,1)*100>9.8,AMOUNT,AMOUNT/((H-L)*2-ABS(O-C))*(C-L));

  買%:=買1/AMOUNT*100;

  流入1:=AMOUNT*買%/10000000000;

  流出1:=AMOUNT/100000000-流入1;

  凈流:=(流入1-流出1);

  總額3:=SUM(AMOUNT,3);

  流入3:=SUM(流入1,3);

  流出3:=SUM(流出1,3);

  凈流3:=SUM(流入1-流出1,3);

  總額5:=SUM(AMOUNT,5);

  流入5:=SUM(流入1,5);

  流出5:=SUM(流出1,5);

  凈流5:=SUM(流入1-流出1,5);

  總額10:=SUM(AMOUNT,10);

  流入10:=SUM(流入1,10);

  流出10:=SUM(流出1,10);

  凈流10:=SUM(流入1-流出1,10);

  畫:=CONST(FINDHIGH(總額10,0,190,1));

  DRAWTEXT_FIX(1,0.11,0.12,0,'凈流(億):'),COLOR8080FF,LINETHICK1;

  DRAWTEXT_FIX(1,0.18,0.1,0,'1日'),COLOR8080FF,LINETHICK1;

  DRAWTEXT_FIX(1,0.23,0.1,0,'3日'),COLOR8080FF,LINETHICK1;

  DRAWTEXT_FIX(1,0.28,0.1,0,'5日'),COLOR8080FF,LINETHICK1;

  DRAWTEXT_FIX(1,0.33,0.1,0,'10日'),COLOR8080FF,LINETHICK1;

  DRAWNUMBER_FIX(1,0.18,0.15,0,CONST((凈流))),COLORYELLOW;

  DRAWNUMBER_FIX(1,0.23,0.15,0,CONST((凈流3))),COLORYELLOW;

  DRAWNUMBER_FIX(1,0.28,0.15,0,CONST((凈流5))),COLORYELLOW;

  DRAWNUMBER_FIX(1,0.33,0.15,0,CONST((凈流10))),COLORYELLOW;

  Z1A:=STRCAT(HYBLOCK,' ');

  Z2A:=STRCAT(Z1A,FGBLOCK);

  Z3A:=STRCAT(Z2A,DYBLOCK);

  Z4A:=STRCAT(Z3A,' ');

  DRAWTEXT_FIX(ISLASTBAR,0.25,0.98,0,STRCAT(Z4A,GNBLOCK)),COLORCYAN;

  {短中線}

  MA1:=MA(C,1);

  MA2:=MA(C,2);

  MA3:=MA(C,3);

  MA4:=MA(C,5);

  MA52:=MA(C,8);

  MA62:=MA(C,13);

  短線:MA((MA1+MA2+MA3+MA4+MA52+MA62)/6,5),COLORMAGENTA,LINETHICK2;

  {短線出擊}

  TT2:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4.15),0.9);

  TT1:=REF(EMA(TT2,3),1);

  RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;

  K:=SMA(RSV,3,1);

  D:=SMA(K,3,1);

  J:=3*K-2*D;

  LC:=REF(CLOSE,1);

  RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);

  FF:=EMA(CLOSE,3);

  AA1:=AMOUNT/VOL;

  BB1:=L

  CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;

  DD1:=L

  EE1:=VOL

  FF1:=BB1 AND CC1 AND DD1 AND EE1;

  F:=100*(C-REF(C,1))/REF(C,1);

  P1:=IF(C

  P2:=IF(C

  TT3:=P1=0 AND REF(P1,1)=1 AND P2=0 AND REF(P2,1)=1 ;

  TT4:=P1=1 AND REF(P1,1)=0 AND P2=1 AND REF(P2,1)=0 ;

  Z1:=MA(C,13);

  ZX:=REF(Z1,13/2+1);

  DRAWTEXT(CROSS(CLOSE,TT1)AND J<55,LOW,'買'),COLORRED;

  STICKLINE(TT3,OPEN,CLOSE,3,0),COLORFF00FF;

  A1:=EMA(C,14)COLORWHITE,LINETHICK1;

  A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;

  STICKLINE(CROSS(A1X,0),C,O,2,0)COLORYELLOW;

  STICKLINE(CROSS(0,A1X),C,O,2,0)COLORGREEN;

  {時間窗}

  AZ:=BARSCOUNT(CLOSE);

  AH:=HHV(HIGH,144);

  AL:=LLV(LOW,144);

  B0:=(AH-AL)/34;

  BL1:=HIGH+B0;

  BL2:=LOW-B0;

  STICKLINE((AZ+0)/34=FLOOR((AZ+0)/34),BL2,BL2-2*B0,2,0),COLORFFFFFF;

  DRAWTEXT((AZ+0)/34=FLOOR((AZ+0)/34),BL2-4*B0,'窗'),COLORFFFFFF;

  {股市上漲}

  VAR3:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)<=REF(C,3) AND REF(C,2)=REF(C,1);

  {綠}

  STICKLINE(VAR3,O,(O+C)/2,2.5,0),COLOR00BB00;

  STICKLINE(VAR3,O,(O+C)/2,0.2,0),COLOR00FF00;

  MTM:=C-REF(C,1);

  DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);

  買:=LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2));

  {買賣線}

  買線:=EMA(CLOSE,2);

  賣線:=EMA(SLOPE(CLOSE,32)*20+CLOSE,56),LINETHICK0;

  BU:=CROSS(買線,賣線);

  SEL:=CROSS(賣線,買線);

  DRAWTEXT (BU,LOW*0.989,'點'),COLORYELLOW,LINETHICK3;

  STICKLINE(CROSS(買線,賣線),OPEN,CLOSE,2,0),COLORYELLOW;

  {買進(jìn)主圖}

  A7:=C-REF(C,1);

  A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);

  買3:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2));

  DRAWTEXT(FILTER(買3=1,5),LOW-0.15,'進(jìn)'),COLORYELLOW;

  STICKLINE(買3,OPEN,CLOSE,2,0),COLORYELLOW;

  {看牛騎牛主圖}

  天使:=EMA(C,2);

  魔鬼:=EMA(SLOPE(C,9)*20+C,40);

  買5:=CROSS(天使,魔鬼);

  DRAWTEXT (買5,LOW*0.97,'牛'),COLORMAGENTA;

  STICKLINE(CROSS(天使,魔鬼),OPEN,CLOSE,2,0),COLORYELLOW;

  {莊現(xiàn)主圖}

  AA:=CROSS(MA(C,5),MA(C,21)) AND CROSS(MA(C,5),MA(C,34)) AND CROSS(MA(C,5),MA(C,55));

  BB:=MA(C,55)>MA(C,13) AND CROSS(MA(C,13),MA(C,34)) AND MA(C,34)>MA(C,21) AND ABS(MA(C,55)-MA(C,21))/MA(C,21)<0.05;

  CC:=MA(C,34)>MA(C,5) AND CROSS(MA(C,5),MA(C,21)) AND MA(C,21)>MA(C,13);

  DD:=ABS((MA(C,5)-MA(C,13))+(MA(C,13)-MA(C,21))+(MA(C,21)-MA(C,34)))<0.02 AND MA(C,5)>REF(MA(C,5),1) AND MA(C,13)>REF(MA(C,13),1);

  EE:=MA(C,21)>MA(C,5) AND CROSS(MA(C,5),MA(C,13)) AND MA(C,13)>MA(C,55) AND ABS(MA(C,21)-MA(C,55))/MA(C,55)<0.05;

  FFF:=AA OR BB OR CC OR DD OR EE ;

  探測:=FFF AND FILTER( FFF,8);

  DRAWTEXT(探測,L*0.978,'●'),COLORRED;

  STICKLINE(探測,O,C,3,0),LINETHICK2,COLORWHITE;

  其中包含的內(nèi)容比較多,有流量幅、行業(yè)板塊、短線操作提示信號、時間窗口、買賣操作信號等,將其導(dǎo)入到軟件中,獲得的走勢圖形如下:

  

bbi主圖

 

  //bbi選股公式

  D1:=EMA(C,3);

  DK:=(MA(C,3)+MA(C,6)+MA(C,12)+MA(C,24))/4;

  DIF:=(EMA(CLOSE,12)-EMA(CLOSE,26));

  DEA:=EMA(DIF,9);

  RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9));

  K:=SMA(RSV,9,1);

  D:=SMA(K,9,1);

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

  XG:CROSS(D1,DK) AND DK>=REF(DK,1) AND GZ;

  在選股公式中,其顯示的僅僅是有一條線,在出現(xiàn)峰值變化的時候就是投資者的介入點位,其基本的圖形如下:

  

bbi選股

 

  其中,bbi指標(biāo)的選股公式可以進(jìn)一步的簡化,形成強(qiáng)勢選股的指標(biāo)公式:

  BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;

  MID:=MA(CLOSE,26);

  CROSS(BBI,MID );

  具體的走勢圖形如下:

  

bbi強(qiáng)勢選股

 

  以上就是本文講解的關(guān)于股市bbi指標(biāo)的選股公式以及基礎(chǔ)主圖公式的詳解分析,如果您還想要了解更多的股市操作技巧,請關(guān)注贏家財富網(wǎng),為您提供更加專業(yè)的技術(shù)分析和公式源碼。

鄭州亨瑞軟件開發(fā)有限公司
版權(quán)所有

服務(wù)中心:鄭州市金水區(qū)農(nóng)業(yè)路經(jīng)三路
郵編:450002 網(wǎng)址:efofrzj.cn

銷售熱線:0371-65350319
技術(shù)支持:13333833889

注冊下載;