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

麻烦请老师把下面的指标修改成显示在[博易期货软件]日k线主图上,多谢了! [博易POBO]

咨询内容:

麻烦请老师把下面的指标修改成显示在[博易期货软件]日k线主图上,多谢了!

PHD:=IF(LLV(L,3)>=REF(H,3),REF(H,3),
IF((LLV(L,3)>=REF(C,3) AND REF(C,3)>REF(O,3)),REF(C,3),
IF(LLV(L,3)>=REF(O,3) AND REF(C,3)>REF(O,3),REF(O,3),REF(L,3))));
{画量柱标识:}
{1.画倍量黄金柱标识}
倍量黄金柱:=DRAWICON((LLV(L,3)>REF(L,3) OR LLV(L,3)=REF(L,3)) AND HHV(V,3)<REF(V,3) AND 
REF(C,3)>REF(O,3) AND REF(V,3)>=2*REF(V,4),H+0.2,17);
{2.画梯量黄金柱标识}
梯量黄金柱:=DRAWICON(LLV(L,3)>REF(L,3) AND HHV(V,3)<REF(V,3) AND 
REF(V,5)>REF(V,6) AND REF(V,4)>REF(V,5) AND REF(V,3)>REF(V,4),H,17);
{3.画平量黄金柱标识}
平量黄金柱:=DRAWICON(LLV(L,3)>REF(L,3) AND HHV(V,3)<REF(V,3) AND 
REF(C,3)>REF(O,3) AND ABS(REF(V,3)-REF(V,4))/REF(V,4)<=0.03,H,19);
倍量:=DRAWICON((VOL>REF(V,1)*2.0 OR VOL=REF(V,1)*2.0) AND C>REF(C,1),H+0.2,26);
STICKLINE(倍量,OPEN,CLOSE,-1,0),COLORYELLOW;
倍量黄金线:STICKLINE(倍量黄金柱,PHD,PHD,28,0),COLORMAGENTA,LINETHICK5;
DRAWICON(倍量黄金柱,PHD*1.008,12);
DRAWTEXT(倍量黄金柱,PHD*1.008,'倍量黄金线'),COLORMAGENTA;
HJZ:=(3*C+H+L+O)/6;
HJZ2:=(8*HJZ+7*REF(HJZ,1)+6*REF(HJZ,2)+5*REF(HJZ,3)+4*REF(HJZ,4)+3*REF(HJZ,5)+2*REF(HJZ,6)+REF(HJZ,8))/36;
HJZ3:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>HJZ2 AND C>O;
黄金柱:FILTER(HJZ3,5),STICK,COLORRED,LINETHICK4,NODRAW;
STICKLINE(黄金柱,O,C,3.3,0),COLORRED;
STICKLINE(黄金柱,H,L,0.1,0),COLORRED;
DRAWTEXT(黄金柱,H*0.98,'←黄金柱'),COLORYELLOW;
XG:=SUMBARS(FILTER(黄金柱,2),1);
STICKLINE(XG,REF(C,XG-1),REF(C,XG-1),10,0),COLORGREEN;
XG1:=SUMBARS(FILTER(黄金柱,2),1);
STICKLINE(XG1,REF(L,XG1-1),REF(L,XG1-1),10,0),COLORAA00FF;
平量黄金线:STICKLINE(平量黄金柱,PHD*1.002,PHD,28,0),COLORYELLOW;
DRAWTEXT(平量黄金柱,PHD*1.015,'←平量黄金线'),COLORFFCC00 ;
梯量黄金线:STICKLINE(梯量黄金柱,PHD*1.002,PHD,28,0),COLORYELLOW;
DRAWTEXT(梯量黄金柱,PHD*1.015,'←梯量黄金线'),COLORCYAN ;

 

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

博易技术人员: PHD:=IF(LLV(L,3)>=REF(H,3),REF(H,3),
IF((LLV(L,3)>=REF(C,3) AND REF(C,3)>REF(O,3)),REF(C,3),
IF(LLV(L,3)>=REF(O,3) AND REF(C,3)>REF(O,3),REF(O,3),REF(L,3))));
{画量柱标识:}
{1.画倍量黄金柱标识}
DRAWICON((LLV(L,3)>REF(L,3) OR LLV(L,3)=REF(L,3)) AND HHV(V,3)<REF(V,3) AND 
REF(C,3)>REF(O,3) AND REF(V,3)>=2*REF(V,4),H+0.2,17);
{2.画梯量黄金柱标识}
DRAWICON(LLV(L,3)>REF(L,3) AND HHV(V,3)<REF(V,3) AND 
REF(V,5)>REF(V,6) AND REF(V,4)>REF(V,5) AND REF(V,3)>REF(V,4),H,17);
{3.画平量黄金柱标识}
DRAWICON(LLV(L,3)>REF(L,3) AND HHV(V,3)<REF(V,3) AND 
REF(C,3)>REF(O,3) AND ABS(REF(V,3)-REF(V,4))/REF(V,4)<=0.03,H,19);
DRAWICON((VOL>REF(V,1)*2.0 OR VOL=REF(V,1)*2.0) AND C>REF(C,1),H+0.2,26);
STICKLINE((VOL>REF(V,1)*2.0 OR VOL=REF(V,1)*2.0) AND C>REF(C,1),OPEN,CLOSE,-1,0),COLORYELLOW;
STICKLINE(LLV(L,3)>REF(L,3) AND HHV(V,3)<REF(V,3) AND 
REF(C,3)>REF(O,3) AND ABS(REF(V,3)-REF(V,4))/REF(V,4)<=0.03,PHD,PHD,28,0),COLORMAGENTA,LINETHICK5;
DRAWICON(LLV(L,3)>REF(L,3) AND HHV(V,3)<REF(V,3) AND 
REF(C,3)>REF(O,3) AND ABS(REF(V,3)-REF(V,4))/REF(V,4)<=0.03,PHD*1.008,12);
DRAWTEXT(LLV(L,3)>REF(L,3) AND HHV(V,3)<REF(V,3) AND 
REF(C,3)>REF(O,3) AND ABS(REF(V,3)-REF(V,4))/REF(V,4)<=0.03,PHD*1.008,'倍量黄金线'),COLORMAGENTA;
HJZ:=(3*C+H+L+O)/6;
HJZ2:=(8*HJZ+7*REF(HJZ,1)+6*REF(HJZ,2)+5*REF(HJZ,3)+4*REF(HJZ,4)+3*REF(HJZ,5)+2*REF(HJZ,6)+REF(HJZ,8))/36;
HJZ3:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>HJZ2 AND C>O;
黄金柱:FILTER(HJZ3,5),STICK,COLORRED,LINETHICK4,NODRAW;
STICKLINE(黄金柱,O,C,3.3,0),COLORRED;
STICKLINE(黄金柱,H,L,0.1,0),COLORRED;
DRAWTEXT(黄金柱,H*0.98,'←黄金柱'),COLORYELLOW;
XG:=SUMBARS(FILTER(黄金柱,2),1);
STICKLINE(XG,REF(C,XG-1),REF(C,XG-1),10,0),COLORGREEN;
XG1:=SUMBARS(FILTER(黄金柱,2),1);
STICKLINE(XG1,REF(L,XG1-1),REF(L,XG1-1),10,0),COLORAA00FF;
STICKLINE(LLV(L,3)>REF(L,3) AND HHV(V,3)<REF(V,3) AND 
REF(C,3)>REF(O,3) AND ABS(REF(V,3)-REF(V,4))/REF(V,4)<=0.03,PHD*1.002,PHD,28,0),COLORYELLOW;
DRAWTEXT(LLV(L,3)>REF(L,3) AND HHV(V,3)<REF(V,3) AND 
REF(C,3)>REF(O,3) AND ABS(REF(V,3)-REF(V,4))/REF(V,4)<=0.03,PHD*1.015,'←平量黄金线'),COLORFFCC00 ;
STICKLINE(LLV(L,3)>REF(L,3) AND HHV(V,3)<REF(V,3) AND 
REF(V,5)>REF(V,6) AND REF(V,4)>REF(V,5) AND REF(V,3)>REF(V,4),PHD*1.002,PHD,28,0),COLORYELLOW;
DRAWTEXT(LLV(L,3)>REF(L,3) AND HHV(V,3)<REF(V,3) AND 
REF(V,5)>REF(V,6) AND REF(V,4)>REF(V,5) AND REF(V,3)>REF(V,4),PHD*1.015,'←梯量黄金线'),COLORCYAN ; PHD:=IF(LLV(L,3)>=REF(H,3),REF(H,3),
IF((LLV(L,3)>=REF(C,3)ANDREF(C,3)>REF(O,3)),REF(C,3),
IF(LLV(L,3)>=REF(O,3)ANDREF(C,3)>REF(O,3),REF(O,3),REF(L,3))));
{画量柱标识:}
{1.画倍量黄金柱标识}
//DRAWICON((LLV(L,3)>REF(L,3)ORLLV(L,3)=REF(L,3))ANDHHV(V,3)<REF(V,3)AND 
//REF(C,3)>REF(O,3)ANDREF(V,3)>=2*REF(V,4),H+0.2,17);
{2.画梯量黄金柱标识}
//DRAWICON(LLV(L,3)>REF(L,3)ANDHHV(V,3)<REF(V,3)AND 
//REF(V,5)>REF(V,6)ANDREF(V,4)>REF(V,5)ANDREF(V,3)>REF(V,4),H,17);
{3.画平量黄金柱标识}
//DRAWICON(LLV(L,3)>REF(L,3)ANDHHV(V,3)<REF(V,3)AND 
//REF(C,3)>REF(O,3)ANDABS(REF(V,3)-REF(V,4))/REF(V,4)<=0.03,H,19);
//DRAWICON((VOL>REF(V,1)*2.0ORVOL=REF(V,1)*2.0)ANDC>REF(C,1),H+0.2,26);
STICKLINE((VOL>REF(V,1)*2.0ORVOL=REF(V,1)*2.0)ANDC>REF(C,1),OPEN,CLOSE,8,0),COLORYELLOW;
STICKLINE(LLV(L,3)>REF(L,3)ANDHHV(V,3)<REF(V,3)AND 
REF(C,3)>REF(O,3)ANDABS(REF(V,3)-REF(V,4))/REF(V,4)<=0.03,PHD,PHD,28,0),COLORMAGENTA,LINETHICK5;
DRAWICON(LLV(L,3)>REF(L,3)ANDHHV(V,3)<REF(V,3)AND 
REF(C,3)>REF(O,3)ANDABS(REF(V,3)-REF(V,4))/REF(V,4)<=0.03,PHD*1.008,12);
DRAWTEXT(LLV(L,3)>REF(L,3)ANDHHV(V,3)<REF(V,3)AND 
REF(C,3)>REF(O,3)ANDABS(REF(V,3)-REF(V,4))/REF(V,4)<=0.03,PHD*1.008,'倍量黄金线'),COLORMAGENTA;
HJZ:=(3*C+H+L+O)/6;
HJZ2:=(8*HJZ+7*REF(HJZ,1)+6*REF(HJZ,2)+5*REF(HJZ,3)+4*REF(HJZ,4)+3*REF(HJZ,5)+2*REF(HJZ,6)+REF(HJZ,8))/36;
HJZ3:=VOL=HHV(VOL,10)ANDVOL>2*REF(VOL,1)ANDCLOSE>HJZ2ANDC>O;
黄金柱:FILTER(HJZ3,5),STICK,COLORRED,LINETHICK4,NODRAW;
STICKLINE(黄金柱,O,C,3.3,0),COLORRED;
STICKLINE(黄金柱,H,L,0.1,0),COLORRED;
DRAWTEXT(黄金柱,H*0.98,'←黄金柱'),COLORYELLOW;
XG:=SUMBARS(FILTER(黄金柱,2),1);
STICKLINE(XG,REF(C,XG-1),REF(C,XG-1),10,0),COLORGREEN;
XG1:=SUMBARS(FILTER(黄金柱,2),1);
STICKLINE(XG1,REF(L,XG1-1),REF(L,XG1-1),10,0),COLORAA00FF;
STICKLINE(LLV(L,3)>REF(L,3)ANDHHV(V,3)<REF(V,3)AND 
REF(C,3)>REF(O,3)ANDABS(REF(V,3)-REF(V,4))/REF(V,4)<=0.03,PHD*1.002,PHD,28,0),COLORYELLOW;
DRAWTEXT(LLV(L,3)>REF(L,3)ANDHHV(V,3)<REF(V,3)AND 
REF(C,3)>REF(O,3)ANDABS(REF(V,3)-REF(V,4))/REF(V,4)<=0.03,PHD*1.015,'←平量黄金线'),COLORFFCC00;
STICKLINE(LLV(L,3)>REF(L,3)ANDHHV(V,3)<REF(V,3)AND 
REF(V,5)>REF(V,6)ANDREF(V,4)>REF(V,5)ANDREF(V,3)>REF(V,4),PHD*1.002,PHD,28,0),COLORYELLOW;
DRAWTEXT(LLV(L,3)>REF(L,3)ANDHHV(V,3)<REF(V,3)AND 
REF(V,5)>REF(V,6)ANDREF(V,4)>REF(V,5)ANDREF(V,3)>REF(V,4),PHD*1.015,'←梯量黄金线'),COLORCYAN; 来源 程序化久久网

 

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

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

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

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


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

相关文章

    没有相关内容