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

请老师改成博弈指标 [博易POBO]

咨询内容:

请老师改成博弈指标

高1:=HHV(H,134);
低1:=LLV(L,134);

H1:=高1-(高1-低1)*0.000;
H2:=高1-(高1-低1)*0.191;
H3:=高1-(高1-低1)*0.236;
H4:=高1-(高1-低1)*0.382;
H5:=高1-(高1-低1)*0.5;
H6:=高1-(高1-低1)*0.618;
H7:=高1-(高1-低1)*0.764;
H8:=高1-(高1-低1)*0.809;
H9:=高1-(高1-低1)*1.000;

顶:REFX1(高1,10000),COLORWHITE,LINETHICK2;
.1:REFX1(H2,10000),COLORYELLOW,LINETHICK2;
%23.6:REFX1(H3,10000),COLORBLUE,LINETHICK2;
%38.2:REFX1(H4,10000),COLORYELLOW,LINETHICK2;
%50:REFX1(H5,10000),COLORGREEN,LINETHICK2;
%61.8:REFX1(H6,10000),COLORLIGHTGREY,LINETHICK2;
%76.4:REFX1(H7,10000),COLORRED,LINETHICK2;
%80.9:REFX1(H8,10000),COLORWHITE,LINETHICK2;
低:REFX1(低1,10000),COLORYELLOW,LINETHICK2;

M1:EMA(C,3),COLORRED,LINETHICK3,NODRAW;
M2:EMA(M1,3),COLORGRAY,NODRAW;
M3:EMA(M2,3),COLORGRAY,LINETHICK3,NODRAW;


M1S:IF(M1>REF(M1,1),M1,NULL),COLORYELLOW,LINETHICK1,NODRAW;

M3S:IF(M3>REF(M3,1),M3,NULL),COLORCYAN,LINETHICK3,NODRAW;

/*添加和图中一模一样 0.191 0.236 0.382 0.50 0.618 0.764 0.809
都做标注 这些后面 都标注 点位

标注 19.1 23.6 38.2 大中棒 突破 收钱
标注 50 牛熊分界线

61.8 标注 大中棒 突破 收钱

76.4 80.9 突破收钱 最后机会


1标注 顶 0 标注 底*/
DRAWTEXT(ISLASTBAR,.1,'大中棒 突破 收钱 .1 '),ALIGN2;
DRAWNUMBER(ISLASTBAR,.1,.1,2,COLORWHITE),ALIGN0;

DRAWTEXT(ISLASTBAR,%23.6,'大中棒 突破 收钱 %23.6 '),ALIGN2;
DRAWNUMBER(ISLASTBAR,%23.6,%23.6,2,COLORWHITE),ALIGN0;

DRAWTEXT(ISLASTBAR,%50,'牛熊分界线 %50'),ALIGN2;
DRAWNUMBER(ISLASTBAR,%50,%50,2,COLORWHITE),ALIGN0;

DRAWTEXT(ISLASTBAR,%38.2,'大中棒 突破 收钱 %38.2 '),ALIGN2;
DRAWNUMBER(ISLASTBAR,%38.2,%38.2,2,COLORWHITE),ALIGN0;

DRAWTEXT(ISLASTBAR,顶,'顶 '),ALIGN2;
DRAWNUMBER(ISLASTBAR,顶,顶,2,COLORWHITE),ALIGN0;

DRAWTEXT(ISLASTBAR,低,'底 '),ALIGN2;
DRAWNUMBER(ISLASTBAR,低,低,2,COLORWHITE),ALIGN0;

DRAWTEXT(ISLASTBAR,%76.4 ,'突破收钱 最后机会 %76.4 '),ALIGN2;
DRAWNUMBER(ISLASTBAR,%76.4 ,%76.4 ,2,COLORWHITE),ALIGN0;

DRAWTEXT(ISLASTBAR,%80.9 ,'突破收钱 最后机会 %80.9 '),ALIGN2;
DRAWNUMBER(ISLASTBAR,%80.9 ,%80.9 ,2,COLORWHITE),ALIGN0;

 

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

博易技术人员: 高1:=HHV(H,134);
低1:=LLV(L,134);

H1:=高1-(高1-低1)*0.000;
H2:=高1-(高1-低1)*0.191;
H3:=高1-(高1-低1)*0.236;
H4:=高1-(高1-低1)*0.382;
H5:=高1-(高1-低1)*0.5;
H6:=高1-(高1-低1)*0.618;
H7:=高1-(高1-低1)*0.764;
H8:=高1-(高1-低1)*0.809;
H9:=高1-(高1-低1)*1.000;

C10000:=DATACOUNT-BARPOS-1;
顶:REFX(高1,C10000),COLORWHITE,LINETHICK2;
A1:REFX(H2,C10000),COLORYELLOW,LINETHICK2;
A236:REFX(H3,C10000),COLORBLUE,LINETHICK2;
A382:REFX(H4,C10000),COLORYELLOW,LINETHICK2;
A50:REFX(H5,C10000),COLORGREEN,LINETHICK2;
A618:REFX(H6,C10000),COLORC0C0C0,LINETHICK2;
A764:REFX(H7,C10000),COLORRED,LINETHICK2;
A809:REFX(H8,C10000),COLORWHITE,LINETHICK2;
低:REFX(低1,C10000),COLORYELLOW,LINETHICK2;

M1:EMA(C,3),COLORRED,LINETHICK3,NODRAW;
M2:EMA(M1,3),COLORGRAY,NODRAW;
M3:EMA(M2,3),COLORGRAY,LINETHICK3,NODRAW;


M1S:IF(M1>REF(M1,1),M1,DRAWNULL),COLORYELLOW,LINETHICK1,NODRAW;

M3S:IF(M3>REF(M3,1),M3,DRAWNULL),COLORCYAN,LINETHICK3,NODRAW;


DRAWTEXT(ISLASTBAR,A1,'大中棒 突破 收钱 .1 '),ALIGN2;
DRAWNUMBER(ISLASTBAR,A1,A1,2),COLORWHITE,ALIGN0;

DRAWTEXT(ISLASTBAR,A236,'大中棒 突破 收钱 %23.6 '),ALIGN2;
DRAWNUMBER(ISLASTBAR,A236,A236,2),COLORWHITE,ALIGN0;

DRAWTEXT(ISLASTBAR,A50,'牛熊分界线 %50'),ALIGN2;
DRAWNUMBER(ISLASTBAR,A50,A50,2),COLORWHITE,ALIGN0;

DRAWTEXT(ISLASTBAR,A382,'大中棒 突破 收钱 %38.2 '),ALIGN2;
DRAWNUMBER(ISLASTBAR,A382,A382,2),COLORWHITE,ALIGN0;

DRAWTEXT(ISLASTBAR,顶,'顶 '),ALIGN2;
DRAWNUMBER(ISLASTBAR,顶,顶,2),COLORWHITE,ALIGN0;

DRAWTEXT(ISLASTBAR,低,'底 '),ALIGN2;
DRAWNUMBER(ISLASTBAR,低,低,2),COLORWHITE,ALIGN0;

DRAWTEXT(ISLASTBAR,A764 ,'突破收钱 最后机会 %76.4 '),ALIGN2;
DRAWNUMBER(ISLASTBAR,A764 ,A764 ,2),COLORWHITE,ALIGN0;

DRAWTEXT(ISLASTBAR,A809 ,'突破收钱 最后机会 %80.9 '),ALIGN2;
DRAWNUMBER(ISLASTBAR,A809 ,A809 ,2),COLORWHITE,ALIGN0; 谢谢老师 来源 程序化久久网

 

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

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

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

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


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

相关文章

    没有相关内容