您现在的位置:程序化交易>> 期货公式>> 博易大师>> 博易大师知识>>正文内容

怎么加入指标公式 [博易POBO]

咨询内容:

怎么加入指标公式

{成交量柱--多空综合}
{时实成交量}
量:VOL,VOLSTICK,COLORLIMAGENTA;

{阴阳线}
阳线:=(C>REF(C,1) AND C>=O) OR C>O OR (C=O AND C=REF(C,1));
阴线:=(C<REF(C,1) AND C<=O) OR C<O;

{均价}
周期:=240; 高1:=CONST(HHV(H,周期)); 低1:=CONST(LLV(L,周期));
H_L:=高1-低1;HH:=H+H_L*0.1; LL:=L-H_L*0.1;
CHL:=(C+O+H+L)/4;
成交均价:=AMOUNT/VOL/100;
TEST:=((ABS(成交均价-CHL)/CHL) < 0.05);
均价:=IF(TEST,成交均价,CHL);

{公式输出组}
V1:=V*1.0;
V2:=V*0.1;
V3:=V*0.5;

{阴阳量柱}
STICKLINE(阳线,0,V1,4.0,0),COLORRED;
STICKLINE(阴线,0,V1,4.0,0),COLORGREEN;

{真假阴阳}
隐形假阴真阳:=C<O AND H>REF(C,1) AND 均价>REF(C,1);
隐形假阳真阴:=C>O AND H<REF(C,1) AND 均价<REF(C,1);
显形假阴真阳:=C<O AND C>REF(C,1);
显形假阳真阴:=C>O AND C<REF(C,1);

{真假阴阳显示}
STICKLINE(隐形假阴真阳,0,V1,1.0,0),COLORMAGENTA;
STICKLINE(隐形假阳真阴,0,V1,1.0,0),COLORGREEN;
STICKLINE(显形假阴真阳,0,V1,1.0,0),COLORMAGENTA;
STICKLINE(显形假阳真阴,0,V1,1.0,0),COLORGREEN;

{多空力道}
空胜:=HHV(C,3)<REF(H,3) AND C<REF(均价,3);
多胜:=LLV(C,3)>REF(L,3) AND C>REF(均价,3);

{多空终点}
空头终点:=REF(阴线,4);
多头终点:=REF(阳线,4);

{多空转向}
主力阴柱:=REF(阴线,3);
主力阳柱:=REF(阳线,3);

{多空蓄势}
三不抬头:=REF(V,3)>=REF(V,4) AND HHV(V,3)<REF(V,3);

{多空组合}

高量空头:=空胜 AND 三不抬头;
高量多头:=多胜 AND 三不抬头;

阳高空头:=空胜 AND 主力阳柱 AND 三不抬头;
阴高多头:=多胜 AND 主力阴柱 AND 三不抬头;

阴胜空头:=空胜 AND 多头终点 AND 主力阴柱 AND 三不抬头;
阳胜多头:=多胜 AND 空头终点 AND 主力阳柱 AND 三不抬头;

{多空输出}
V4:=BACKSET(高量空头,4);
STICKLINE(V4,0,V3,4.0,0),COLORLICYAN;
V5:=BACKSET(高量多头,4);
STICKLINE(V5,0,V3,4.0,0),COLORYELLOW;
V6:=BACKSET(阳高空头,4);
STICKLINE(V6,0,V3,4.0,0),COLORLIBLUE;
V7:=BACKSET(阴高多头,4);
STICKLINE(V7,0,V3,4.0,0),COLORCC3299;
V8:=BACKSET(阴胜空头,4);
STICKLINE(V8,0,V3,4.0,0),COLORCYAN;
V9:=BACKSET(阳胜多头,4);
STICKLINE(V9,0,V3,4.0,0),COLORMAGENTA;

{量能比率}
涨幅:(C-REF(C,1))/REF(C,1)*100,COLORMAGENTA,NODRAW;
振幅:(H-L)/L*100,COLORYELLOW,NODRAW;
量比:V/REF(V,1),COLORMAGENTA,NODRAW;
增数:(量比-1),COLORYELLOW,NODRAW;

{缩量比值}
缩量二十%:=V<=REF(V,1)*0.8;
STICKLINE(缩量二十%,0,V2,2.0,0),COLORGRAY;
缩量三十%:=V<=REF(V,1)*0.7;
STICKLINE(缩量三十%,0,V2,2.0,0),COLORBROWN;
缩量五十%:=V<=REF(V,1)*0.5;
STICKLINE(缩量五十%,0,V2,2.0,0),COLORBLUE;

{用法注释}
{缩比颜色}
缩量20%:缩量二十%,COLORGRAY,NODRAW;
缩量30%:缩量三十%,COLORBROWN,NODRAW;
缩量50%:缩量五十%,COLORBLUE,NODRAW;

{用法注释}
{空头颜色}

高量空头淡青色:高量空头,COLORLICYAN,NODRAW;
阳高空头淡蓝色:阳高空头,COLORLIBLUE,NODRAW;
阴胜空头青色:阴胜空头,COLORCYAN,NODRAW;

{多头颜色}

高量多头黄色:高量多头,COLORYELLOW,NODRAW;
阴高多头紫色:阴高多头,COLORCC3299,NODRAW;
阳胜多头洋红色:阳胜多头,COLORMAGENTA,NODRAW;

 

 来源:程序化99网( WWW.CXH99.COM )

博易技术人员: 麻烦老师帮修改下 谢谢 {成交量柱--多空综合}
{时实成交量}
量:VOL,VOLSTICK,COLORMAGENTA;

{阴阳线}
阳线:=(C>REF(C,1)ANDC>=O)ORC>OOR(C=OANDC=REF(C,1));
阴线:=(C<REF(C,1)ANDC<=O)ORC<O;

{均价}
周期:=240;高1:=HHV(H,周期);低1:=LLV(L,周期);
H_L:=高1-低1;HH:=H+H_L*0.1;LL:=L-H_L*0.1;
CHL:=(C+O+H+L)/4;
成交均价:=AMOUNT/VOL/100;
TEST:=((ABS(成交均价-CHL)/CHL)<0.05);
均价:=IF(TEST,成交均价,CHL);

{公式输出组}
V1:=V*1.0;
V2:=V*0.1;
V3:=V*0.5;

{阴阳量柱}
STICKLINE(阳线,0,V1,4.0,0),COLORRED;
STICKLINE(阴线,0,V1,4.0,0),COLORGREEN;

{真假阴阳}
隐形假阴真阳:=C<OANDH>REF(C,1)AND均价>REF(C,1);
隐形假阳真阴:=C>OANDH<REF(C,1)AND均价<REF(C,1);
显形假阴真阳:=C<OANDC>REF(C,1);
显形假阳真阴:=C>OANDC<REF(C,1);

{真假阴阳显示}
STICKLINE(隐形假阴真阳,0,V1,1.0,0),COLORMAGENTA;
STICKLINE(隐形假阳真阴,0,V1,1.0,0),COLORGREEN;
STICKLINE(显形假阴真阳,0,V1,1.0,0),COLORMAGENTA;
STICKLINE(显形假阳真阴,0,V1,1.0,0),COLORGREEN;

{多空力道}
空胜:=HHV(C,3)<REF(H,3)ANDC<REF(均价,3);
多胜:=LLV(C,3)>REF(L,3)ANDC>REF(均价,3);

{多空终点}
空头终点:=REF(阴线,4);
多头终点:=REF(阳线,4);

{多空转向}
主力阴柱:=REF(阴线,3);
主力阳柱:=REF(阳线,3);

{多空蓄势}
三不抬头:=REF(V,3)>=REF(V,4)ANDHHV(V,3)<REF(V,3);

{多空组合}

高量空头:=空胜AND三不抬头;
高量多头:=多胜AND三不抬头;

阳高空头:=空胜AND主力阳柱AND三不抬头;
阴高多头:=多胜AND主力阴柱AND三不抬头;

阴胜空头:=空胜AND多头终点AND主力阴柱AND三不抬头;
阳胜多头:=多胜AND空头终点AND主力阳柱AND三不抬头;

{多空输出}
V4:=BACKSET(高量空头,4);
STICKLINE(V4,0,V3,4.0,0),COLORCYAN;
V5:=BACKSET(高量多头,4);
STICKLINE(V5,0,V3,4.0,0),COLORYELLOW;
V6:=BACKSET(阳高空头,4);
STICKLINE(V6,0,V3,4.0,0),COLORBLUE;
V7:=BACKSET(阴高多头,4);
STICKLINE(V7,0,V3,4.0,0),COLORCC3299;
V8:=BACKSET(阴胜空头,4);
STICKLINE(V8,0,V3,4.0,0),COLORCYAN;
V9:=BACKSET(阳胜多头,4);
STICKLINE(V9,0,V3,4.0,0),COLORMAGENTA;

{量能比率}
涨幅:(C-REF(C,1))/REF(C,1)*100,COLORMAGENTA,NODRAW;
振幅:(H-L)/L*100,COLORYELLOW,NODRAW;
量比:V/REF(V,1),COLORMAGENTA,NODRAW;
增数:(量比-1),COLORYELLOW,NODRAW;

{缩量比值}
缩量二十%:=V<=REF(V,1)*0.8;
STICKLINE(缩量二十%,0,V2,2.0,0),COLORGRAY;
缩量三十%:=V<=REF(V,1)*0.7;
STICKLINE(缩量三十%,0,V2,2.0,0),COLOR004080;
缩量五十%:=V<=REF(V,1)*0.5;
STICKLINE(缩量五十%,0,V2,2.0,0),COLORBLUE;

{用法注释}
{缩比颜色}
缩量20%:缩量二十%,COLORGRAY,NODRAW;
缩量30%:缩量三十%,COLOR004080,NODRAW;
缩量50%:缩量五十%,COLORBLUE,NODRAW;

{用法注释}
{空头颜色}

高量空头淡青色:高量空头,COLORCYAN,NODRAW;
阳高空头淡蓝色:阳高空头,COLORBLUE,NODRAW;
阴胜空头青色:阴胜空头,COLORCYAN,NODRAW;

{多头颜色}

高量多头黄色:高量多头,COLORYELLOW,NODRAW;
阴高多头紫色:阴高多头,COLORCC3299,NODRAW;
阳胜多头洋红色:阳胜多头,COLORMAGENTA,NODRAW; 来源 程序化久久网

 

有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友

可联系技术人员 QQ: 262069696  点击在线交流或微信号:cxh99cxh99  进行 有偿收费 编写!

怎么收费,代编流程等详情请点击阅读!

(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)


【字体: 】【打印文章】【查看评论

相关文章

    没有相关内容