快好知 kuaihz

【通达信】博尔量化系统(源码 主图/副图 通...

周末继续给大家分享实用的干货,今天分享的是收费版软件博尔量化系统的主打特色指标源码。

指标主图:博尔多空概率

指标副图:博尔主导动能、AC加速、AO动量、MF视窗等指标。

指标全图:

博尔量化交易--主图(多空概率)源码:

做空95: HHV((HIGH+LOW+OPEN+2*CLOSE)/5+H-L,5),COLORBLUE;

做空68: HHV((HIGH+LOW+OPEN+2*CLOSE)/5*2-L,5),COLORRED;

平衡点: LLV((HIGH+LOW+OPEN+2*CLOSE)/5,3),COLORGRAY,DOTLINE;

做多68: LLV((HIGH+LOW+OPEN+2*CLOSE)/5*2-H,8),COLORGREEN;

做多95: LLV((HIGH+LOW+OPEN+2*CLOSE)/5-H+L,8),COLORFAABEC;

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

博尔:=IF(C<0,1,0);

P1:=博尔;

量化:=IF(C<0,1,0);

P2:=量化;

STICKLINE(P1=0 AND REF(P1,1)=1 AND P2=0 AND REF(P2,1)=1,OPEN,CLOSE,3,0),COLOR0055FF;

STICKLINE(P1=1 AND REF(P1,1)=0 AND P2=1  AND REF(P2,1)=0,OPEN,CLOSE,3,0),COLORGREEN;

多空概率指标:蓝线为做空概率为95%,红线为做空概率为68%,绿线和紫线分别为做多概率为68%和95%,本指标从趋势上可以将股市历史运行及未来趋势一览众山小,真正做到知彼知己百战不殆。

博尔量化交易--副图(主动导能)源码:

TT:=(2*CLOSE+OPEN+HIGH+LOW);

主导动能:TT/EMA(TT,4)-1,COLORSTICK;

FF:=主导动能;

STICKLINE(FF,0,FF,3.2,0),COLOR33CFDD;

STICKLINE(FF,0,FF,2.8,0),COLOR33DFDD;

STICKLINE(FF,0,FF,2,0),COLOR33EFDD;

STICKLINE(FF,0,FF,1,0),COLOR33FFDD;

STICKLINE(FF<0,0,FF,3.2,0),COLOR00CC00;

STICKLINE(FF<0,0,FF,2.8,0),COLOR00DD00;

STICKLINE(FF<0,0,FF,2,0),COLOR00EE00;

STICKLINE(FF<0,0,FF,1,0),COLOR00FF00;

STICKLINE(FF>REF(FF,1)AND FF<0,0,FF,3.2,0),COLORFF9900;

STICKLINE(FF>REF(FF,1)AND FF<0,0,FF,2.8,0),COLORFFAA00;

STICKLINE(FF>REF(FF,1)AND FF<0,0,FF,2,0),COLORFFBB00;

STICKLINE(FF>REF(FF,1)AND FF<0,0,FF,1,0),COLORFFCC00;

STICKLINE(FF>REF(FF,1)AND FF>0,0,FF,3.2,0),COLOR0000CC;

STICKLINE(FF>REF(FF,1)AND FF>0,0,FF,2.8,0),COLOR0000DD;

STICKLINE(FF>REF(FF,1)AND FF>0,0,FF,2,0),COLOR0000EE;

STICKLINE(FF>REF(FF,1)AND FF>0,0,FF,1,0),COLOR0000FF;

主导动使用说明:红色柱状表示资金正在主导价格上涨或即将主导价格上涨

核心:资金做多、价格上涨,持有。

策略:买进或持有。

技巧:

1、主导动能连续出现红色,价格正在上涨,此刻可持有;

2、主导动能连续出现红色,价格尚未上涨,此刻可以适当买入;

3、配合多空概率使用时,资金主导价格上涨,冲破68%概率上限而持续走强,此刻应持股;

4、配合多空概率使用时,资金主导价格上涨,冲破95%概率上限,此刻应视主导动能具体状态酌情减仓;

黄色柱状表示获利资金主导价格

核心:获利资金主导价格通常难以改变价格上涨趋势,但如短期涨幅过大、获利盘过多,则短期价格出现回落或震荡的概率增加。

策略:减仓或观望。

技巧:

1、主导动能出现黄色,价格或将出现回落或震荡,加仓需谨慎;

2、主导动能出现黄色,同时市场整体走势偏弱时,可适当减仓;

3、主导动能出现黄色,但市场整体走势较强、价格涨幅较小,可继续持有;

4、配合多空概率使用时,获利资金主导价格,价格突破68%概率或95%概率上限且涨幅较大,将引发市场震荡或回落;

绿色柱状表示资金主导价格下跌

核心:资金做空,价格下跌,远离。

策略:离场或观望。

技巧:

1、主导动能出现绿色,价格正在下跌或是将要下跌,此刻宜观望;

2、主导动能长期呈现绿色,远离此类个股。

博尔量化交易--副图(AC加速)源码:

AO:=MA((HIGH+LOW)/2,5)-MA((HIGH+LOW)/2,34);

AO5:=MA(AO,5);

AC:AO-AO5,LINETHICK0;

STICKLINE(AC>=REF(AC,1),0,AC,2.2,1),COLORRED;

STICKLINE(AC< REF(AC,1),0,AC,2.2,1),COLORGREEN;

AC1:=REF(AC,1);

BUY1:=REF(AC,3)<REF(AC1,3) AND REF(AC,2)<REF(AC1,2) AND REF(AC,2)<REF(AC,3) AND REF(AC,1)>REF(AC1,1) AND AC>AC1 AND COUNT(AC>0,4)=4;

DRAWTEXT(BUY1,AC,"B"),COLORWHITE;

DRAWICON(BUY1,AC,1);

BUY2:=COUNT(AC<0,4)=4 AND REF(AC,3)<REF(AC1,3) AND COUNT(AC>AC1,3)=3;

DRAWTEXT(BUY2,AC, "B"),COLORWHITE;

DRAWICON(BUY2,AC,1);

BUY3:=REF(AC,3)<REF(AC1,3) AND REF(AC,2)<REF(AC1,2) AND REF(AC,2)<REF(AC,3) AND COUNT(AC>AC1,2)=2 AND REF(AC,1)<0 AND AC>0;

DRAWTEXT(BUY3,AC, "B"),COLORWHITE;

DRAWICON(BUY3,AC,1);

BUY4:=REF(AC,4)<REF(AC1,4) AND REF(AC,3)<REF(AC1,3) AND REF(AC,3)<REF(AC,4) AND COUNT(AC>AC1,3)=3 AND REF(AC,1)<0 AND AC>0;

DRAWTEXT(BUY4,AC, "B"),COLORWHITE;

DRAWICON(BUY4,AC,1);

S1:=REF(AC,3)>REF(AC1,3) AND REF(AC,2)>REF(AC1,2) AND REF(AC,2)>REF(AC,3) AND REF(AC,1)<REF(AC1,1) AND AC<AC1 AND COUNT(AC<0,4)=4;

DRAWTEXT(S1,AC,"S"),COLORWHITE;

DRAWICON(S1,AC,2);

S2:=COUNT(AC>0,4)=4 AND REF(AC,3)>REF(AC1,3) AND COUNT(AC<AC1,3)=3;

DRAWTEXT(S2,AC,"S"),COLORWHITE;

DRAWICON(S2,AC,2);

S3:=REF(AC,3)>REF(AC1,3) AND REF(AC,2)>REF(AC1,2) AND REF(AC,2)>REF(AC,3) AND COUNT(AC<AC1,2)=2 AND REF(AC,1)>0 AND AC<0;

DRAWICON(S3,AC,2);

博尔量化交易--副图(AO动量)源码:

VAR1:=(HIGH+LOW)/2;

AO:MA(VAR1,5)-MA(VAR1,34),LINETHICK0;

STICKLINE(AO>=REF(AO,1),0,AO,2.2,1),COLORRED;

STICKLINE(AO<REF(AO,1),0,AO,2.2,1),COLORGREEN;

AO5:MA(AO,5),COLORFF6600;

S1:=CROSS(0,AO);

DRAWTEXT(S1,AO,"S"),COLORWHITE;

DRAWICON(S1,AO,2);

S2:=AO<0 AND REF(AO,1)>REF(AO,2) AND AO<REF(AO,1);

DRAWTEXT(S2,AO,"S"),COLORWHITE;

DRAWICON(S2,AO,2);

SCOUNT:=BARSLAST(AO<0);

SD:=HHV(AO,SCOUNT);

SCOUNTD:=HHVBARS(AO,SCOUNT);

S3:=AO>0 AND REF(AO,1)>REF(AO,2) AND AO<REF(AO,1);

S31:=COUNT(S3,SCOUNTD);

DRAWTEXT(S31>=2 AND S3,AO,"S"),COLORWHITE;

DRAWICON(S31>=2 AND S3,AO,2);

B1:=CROSS(AO,0);

DRAWTEXT(B1,AO,"B"),COLORWHITE;

DRAWICON(B1,AO,1);

B2:=AO>0 AND REF(AO,1)<REF(AO,2) AND AO>REF(AO,1) ;

DRAWTEXT(B2,AO,"B"),COLORWHITE;

DRAWICON(B2,AO,1);

BCOUNT:=BARSLAST(AO>0);

BD:=LLV(AO,BCOUNT);

BCOUNTD:=LLVBARS(AO,BCOUNT);

B3:=AO<0 AND REF(AO,1)<REF(AO,2) AND AO>REF(AO,1);

B31:=COUNT(B3,BCOUNTD);

DRAWTEXT(B31>=2 AND B3,AO,"B"),COLORWHITE;

DRAWICON(B31>=2 AND B3,AO,1);

AO用法:B信号买入S信号卖出

博尔量化交易--副图(MF视窗)源码:

MFI:(H-L)*1000000/V,STICK;

A1:=MFI>=REF(MFI,1)*1.1 AND V>=REF(V,1)*1.1;

A2:=MFI<=REF(MFI,1)*0.9 AND V<=REF(V,1)*0.9;

A3:=MFI>=REF(MFI,1)*1.1 AND V<=REF(V,1)*0.9;

A4:=MFI<=REF(MFI,1)*0.9 AND V>=REF(V,1)*1.1;

STICKLINE(A1,0,MFI,0.1,1),COLORGREEN;

STICKLINE(A2,0,MFI,0.1,1),COLORBLUE;

STICKLINE(A3,0,MFI,0.1,1),COLORBROWN;

STICKLINE(A4,0,MFI,0.1,1),COLORMAGENTA;

MA5:MA(MFI,5);

绿灯:IF(A1,MFI,DRAWNULL),STICK,COLORGREEN;

衰退:IF(A2,MFI,DRAWNULL),STICK,COLORBLUE;

伪装:IF(A3,MFI,DRAWNULL),STICK,COLORBROWN;

蛰伏:IF(A4,MFI,DRAWNULL),STICK,COLORMAGENTA;

留个思考题,这个指标的用法大家自己参悟,有心得的朋友留言板说出来 ,我翻出来看谁说的好。

本站资源来自互联网,仅供学习,如有侵权,请通知删除,敬请谅解!
搜索建议:博尔  博尔词条  量化  量化词条  通达  通达词条  源码  源码词条  系统  系统词条