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

麻烦老师把这个黄金分割源码转换彭博用!!谢谢!!! [博易POBO]

咨询内容:

麻烦老师把这个黄金分割源码转换彭博用!!谢谢!!!

M:= 150;

顶1:=REFX1(HHV(H,M),10000);
底1:=REFX1(LLV(L,M),10000);
H1:=顶1-(顶1-底1)*0.191;
H2:=顶1-(顶1-底1)*0.382;
H3:=顶1-(顶1-底1)*0.5;
H4:=顶1-(顶1-底1)*0.618;
H5:=顶1-(顶1-底1)*0.809;
顶部:REFX1(顶1,10000),COLOR666666,DOT;
.8:REFX1(H1,10000),COLOR666666,DOT;
%38.2:REFX1(H2,10000),COLOR666666,DOT;
%50:REFX1(H3,10000),COLOR666666,DOT;
%61.8:REFX1(H4,10000),COLOR666666,DOT;
%80.9:REFX1(H5,10000),COLOR666666,DOT;
底部:REFX1(底1,10000),COLOR666666,DOT;
DRAWTEXT(ISLASTBAR,顶部,'   顶部'),COLORGREEN;
DRAWTEXT(ISLASTBAR,.8,'   19.8%'),COLORMAGENTA;
DRAWTEXT(ISLASTBAR,%38.2,'   38.2%'),COLORYELLOW;
DRAWTEXT(ISLASTBAR,%50,'   50%'),COLORWHITE;
DRAWTEXT(ISLASTBAR,%61.8,'   61.8%'),COLORYELLOW;
DRAWTEXT(ISLASTBAR,%80.9,'   80.9%'),COLORMAGENTA;
DRAWTEXT(ISLASTBAR,底部,'   底部'),COLORRED;
 
DRAWTEXT(CROSS(REF(ZIGZAG(C,1,1),1),ZIGZAG(C,1,1)),HIGH,'空'),COLORGREEN;
DRAWTEXT(CROSS(ZIGZAG(C,1,1),REF(ZIGZAG(C,1,1),1)),LOW,'多'),COLORYELLOW;
 

 

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

博易技术人员: M:= 150;

顶1:=REFX(HHV(H,M),DATACOUNT-BARPOS-1);
底1:=REFX(LLV(L,M),DATACOUNT-BARPOS-1);
H1:=顶1-(顶1-底1)*0.191;
H2:=顶1-(顶1-底1)*0.382;
H3:=顶1-(顶1-底1)*0.5;
H4:=顶1-(顶1-底1)*0.618;
H5:=顶1-(顶1-底1)*0.809;
顶部:REFX(顶1,DATACOUNT-BARPOS-1),COLOR666666,POINTDOT;
A8:REFX(H1,DATACOUNT-BARPOS-1),COLOR666666,POINTDOT;
A382:REFX(H2,DATACOUNT-BARPOS-1),COLOR666666,POINTDOT;
A50:REFX(H3,DATACOUNT-BARPOS-1),COLOR666666,POINTDOT;
A618:REFX(H4,DATACOUNT-BARPOS-1),COLOR666666,POINTDOT;
A809:REFX(H5,DATACOUNT-BARPOS-1),COLOR666666,POINTDOT;
底部:REFX(底1,DATACOUNT-BARPOS-1),COLOR666666,POINTDOT;
DRAWTEXT(ISLASTBAR,顶部,'   顶部'),COLORGREEN;
DRAWTEXT(ISLASTBAR,A8,'   19.8%'),COLORMAGENTA;
DRAWTEXT(ISLASTBAR,A382,'   38.2%'),COLORYELLOW;
DRAWTEXT(ISLASTBAR,A50,'   50%'),COLORWHITE;
DRAWTEXT(ISLASTBAR,A618,'   61.8%'),COLORYELLOW;
DRAWTEXT(ISLASTBAR,A809,'   80.9%'),COLORMAGENTA;
DRAWTEXT(ISLASTBAR,底部,'   底部'),COLORRED;
 
DRAWTEXT(CROSS(REF(ZIG(C,1,1),1),ZIG(C,1,1)),HIGH,'空'),COLORGREEN;
DRAWTEXT(CROSS(ZIG(C,1,1),REF(ZIG(C,1,1),1)),LOW,'多'),COLORYELLOW; 谢谢老师,,新年快乐 来源 程序化久久网

 

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

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

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

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


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

相关文章

    没有相关内容