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

老师,这个指标能否帮我修改成博易指标? [博易POBO]

咨询内容:

老师,这个指标能否帮我修改成博易指标?

通达信极品跟庄分时指标公式

TE;A1:=(DVOLᄃ/C)/2,NODRAW;
A2:=SUM(IF(A1>100 AND CLOSE>REF(CLOSE,1),A1,0),0);
A3:=SUM(IF(A1>100 AND CLOSE<REF(CLOSE,1),A1,0),0);
A4:=SUM(IF(A1<100 AND CLOSE>REF(CLOSE,1),A1,0),0);
A5:=SUM(IF(A1<100 AND CLOSE<REF(CLOSE,1),A1,0),0);
A6:=A2+A3+A4+A5;
机买:(A2/A6)*100,LINETHICK2,COLORRED;
机卖:(A3/A6)*100,LINETHICK2,COLORGREEN;
散买:(A4/A6)*100,LINETHICK0;
散卖:(A5/A6)*100,LINETHICK0;
主力差:机买-机卖,LINETHICK2,NODRAW;
散户ᄃ差:散买-散卖,LINETHICK0,NODRAW;
DRAWTEXT(主力差>0 AND REF(主力差,1)<=0,C*0.85,'●机构ᄃ'),COLORRED;
DRAWTEXT(主力差<0 AND REF(主力差,1)>=0,-C*0.85,'○机构'),COLORWHITE;
DRAWTEXT(散户差>0 AND REF(散户差,1)<=0,C*0.15,'▲散户'),COLORCYAN;
DRAWTEXT(散户差<0 AND REF(散户差,1)>=0,-C*0.15,'△散户'),COLORWHI
 
 
还一个:
HH:=FINDHIGH(H,0,20,1);
 LL:=FINDLOW(L,0,20,1);
 HH1:=FINDHIGH(H,20,20,1);
 LL1:=FINDLOW(L,20,20,1);
 HH2:=FINDHIGH(H,40,20,1);
 LL2:=FINDLOW(L,40,20,1);
 HH3:=FINDHIGH(H,60,20,1);
 LL3:=FINDLOW(L,60,20,1);
 HH4:=FINDHIGH(H,80,20,1);
 LL4:=FINDLOW(L,80,20,1);
 HH5:=FINDHIGH(H,100,20,1);
 LL5:=FINDLOW(L,100,20,1);
 STICKLINE(CURRBARSCOUNT<20 AND CURRBARSCOUNT>1 ,CONST(HH),CONST(HH),8,0)COLORYELLOW;
 STICKLINE(CURRBARSCOUNT<20 AND CURRBARSCOUNT>1 ,CONST(LL),CONST(LL),8,0)COLORYELLOW;
 STICKLINE(CURRBARSCOUNT<20 AND CURRBARSCOUNT>1 ,(CONST(HH)+CONST(LL))/2,(CONST(HH)+CONST(LL))/2,8,-1)COLORYELLOW;
 STICKLINE(CURRBARSCOUNT=20 OR CURRBARSCOUNT=1 ,CONST(HH),CONST(LL),0,0)COLORYELLOW;
 STICKLINE(CURRBARSCOUNT<40 AND CURRBARSCOUNT>21 ,CONST(HH1),CONST(HH1),8,0)COLORYELLOW;
 STICKLINE(CURRBARSCOUNT<40 AND CURRBARSCOUNT>21,CONST(LL1),CONST(LL1),8,0)COLORYELLOW;
 STICKLINE(CURRBARSCOUNT<40 AND CURRBARSCOUNT>21 ,(CONST(HH1)+CONST(LL1))/2,(CONST(HH1)+CONST(LL1))/2,8,-1)COLORYELLOW;STICKLINE(CURRBARSCOUNT=40 OR CURRBARSCOUNT=21 ,CONST(HH1),CONST(LL1),0,0)COLORYELLOW;
 STICKLINE(CURRBARSCOUNT<60 AND CURRBARSCOUNT>41,CONST(HH2),CONST(HH2),8,0)COLORYELLOW;
 STICKLINE(CURRBARSCOUNT<60 AND CURRBARSCOUNT>41,CONST(LL2),CONST(LL2),8,0)COLORYELLOW;
 STICKLINE(CURRBARSCOUNT<60 AND CURRBARSCOUNT>41 ,(CONST(HH2)+CONST(LL2))/2,(CONST(HH2)+CONST(LL2))/2,8,-1)COLORYELLOW;
 STICKLINE(CURRBARSCOUNT=60 OR CURRBARSCOUNT=41,CONST(HH2),CONST(LL2),0,0)COLORYELLOW;
 STICKLINE(CURRBARSCOUNT<80 AND CURRBARSCOUNT>61,CONST(HH3),CONST(HH3),8,0)COLORYELLOW;
 STICKLINE(CURRBARSCOUNT<80 AND CURRBARSCOUNT>61,CONST(LL3),CONST(LL3),8,0)COLORYELLOW;
 STICKLINE(CURRBARSCOUNT<80 AND CURRBARSCOUNT>61 ,(CONST(HH3)+CONST(LL3))/2,(CONST(HH3)+CONST(LL3))/2,8,-1)COLORYELLOW;
 STICKLINE(CURRBARSCOUNT=80 OR CURRBARSCOUNT=61,CONST(HH3),CONST(LL3),0,0)COLORYELLOW;
 STICKLINE(CURRBARSCOUNT<100 AND CURRBARSCOUNT>81,CONST(HH4),CONST(HH4),8,0)COLORYELLOW;
 STICKLINE(CURRBARSCOUNT<100 AND CURRBARSCOUNT>81,CONST(LL4),CONST(LL4),8,0)COLORYELLOW;
 STICKLINE(CURRBARSCOUNT<100 AND CURRBARSCOUNT>81 ,(CONST(HH4)+CONST(LL4))/2,(CONST(HH4)+CONST(LL4))/2,8,-1)COLORYELLOW;
 STICKLINE(CURRBARSCOUNT=100 OR CURRBARSCOUNT=81,CONST(HH4),CONST(LL4),0,0)COLORYELLOW;
 STICKLINE(CURRBARSCOUNT<120 AND CURRBARSCOUNT>101,CONST(HH5),CONST(HH5),8,0)COLORYELLOW;
 STICKLINE(CURRBARSCOUNT<120 AND CURRBARSCOUNT>101,CONST(LL5),CONST(LL5),8,0)COLORYELLOW;
 STICKLINE(CURRBARSCOUNT<120 AND CURRBARSCOUNT>101 ,(CONST(HH5)+CONST(LL5))/2,(CONST(HH5)+CONST(LL5))/2,8,-1)COLORYELLOW;
 STICKLINE(CURRBARSCOUNT=120 OR CURRBARSCOUNT=101,CONST(HH5),CONST(LL5),0,0)COLORYELLOW;

 DRAWTEXT_FIX(CURRBARSCOUNT=20,0.9,0.005,0,STRCAT(STRCAT('最高价:',VAR2STR(HH,2)),'元'))COLORYELLOW;
 DRAWTEXT_FIX(CURRBARSCOUNT=20,0.9,1.9,0,STRCAT(STRCAT('最低价:',VAR2STR(LL,2)),'元'))COLORYELLOW;
 DRAWTEXT_FIX(CURRBARSCOUNT=40,0.7,0.005,0,STRCAT(STRCAT('最高价:',VAR2STR(HH1,2)),'元'))COLORYELLOW;
 DRAWTEXT_FIX(CURRBARSCOUNT=40,0.7,1.9,0,STRCAT(STRCAT('最低价:',VAR2STR(LL1,2)),'元'))COLORYELLOW;
 DRAWTEXT_FIX(CURRBARSCOUNT=60,0.55,0.005,0,STRCAT(STRCAT('最高价:',VAR2STR(HH2,2)),'元'))COLORYELLOW;
 DRAWTEXT_FIX(CURRBARSCOUNT=60,0.55,1.9,0,STRCAT(STRCAT('最低价:',VAR2STR(LL2,2)),'元'))COLORYELLOW;
 DRAWTEXT_FIX(CURRBARSCOUNT=80,0.38,0.005,0,STRCAT(STRCAT('最高价:',VAR2STR(HH3,2)),'元'))COLORYELLOW;
 DRAWTEXT_FIX(CURRBARSCOUNT=80,0.38,1.9,0,STRCAT(STRCAT('最低价:',VAR2STR(LL3,2)),'元'))COLORYELLOW;
 DRAWTEXT_FIX(CURRBARSCOUNT=100,0.22,0.005,0,STRCAT(STRCAT('最高价:',VAR2STR(HH4,2)),'元'))COLORYELLOW;
 DRAWTEXT_FIX(CURRBARSCOUNT=100,0.22,1.9,0,STRCAT(STRCAT('最低价:',VAR2STR(LL4,2)),'元'))COLORYELLOW;
 DRAWTEXT_FIX(CURRBARSCOUNT=120,0.101,0.005,0,STRCAT(STRCAT('最高价:',VAR2STR(HH5,2)),'元'))COLORYELLOW;
 DRAWTEXT_FIX(CURRBARSCOUNT=120,0.101,1.9,0,STRCAT(STRCAT('最低价:',VAR2STR(LL5,2)),'元'))COLORYELLOW;

 

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

博易技术人员: 这里面DVOL我搜了资料显示是个未来函数,博易中暂不支持,我用vol替换的。
A1:=(VOL*100/C)/2,NODRAW;
A2:=SUM(IF(A1>100 AND CLOSE>REF(CLOSE,1),A1,0),0);
A3:=SUM(IF(A1>100 AND CLOSE<REF(CLOSE,1),A1,0),0);
A4:=SUM(IF(A1<100 AND CLOSE>REF(CLOSE,1),A1,0),0);
A5:=SUM(IF(A1<100 AND CLOSE<REF(CLOSE,1),A1,0),0);
A6:=A2+A3+A4+A5;
机买:(A2/A6)*100,LINETHICK2,COLORRED;
机卖:(A3/A6)*100,LINETHICK2,COLORGREEN;
散买:(A4/A6)*100,LINETHICK0;
散卖:(A5/A6)*100,LINETHICK0;
主力差:机买-机卖,LINETHICK2,NODRAW;
散户差:散买-散卖,LINETHICK0,NODRAW;
DRAWTEXT(主力差>0 AND REF(主力差,1)<=0,C*0.85,'●机构?'),COLORRED;
DRAWTEXT(主力差<0 AND REF(主力差,1)>=0,-C*0.85,'○机构'),COLORWHITE;
DRAWTEXT(散户差>0 AND REF(散户差,1)<=0,C*0.15,'▲散户'),COLORCYAN;
DRAWTEXT(散户差<0 AND REF(散户差,1)>=0,-C*0.15,'△散户'),COLORWHITE; 谢谢老师!刚才下面还一个呢?
  来源 程序化久久网

 

有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友

可联系技术人员 QQ: 1145508240  点击在线交流或微信号:cxh99cxh99  进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,谢谢您!)

怎么收费,代编流程等详情请点击阅读,或QQ微信联系我们!


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

相关文章

    没有相关内容