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

老师你好,怎么办指标的数字移动到左边呢?麻烦您给我修改一下。 [博易POBO]

咨询内容:

老师你好,怎么办指标的数字移动到左边呢?麻烦您给我修改一下。

A1:= STKCALC('',6,'ref(h,1)');
A2:= STKCALC('',6,'ref(l,1)');
A3:= STKCALC('',6,'ref(c,1)');
R:=A1 - A2;//RANGE
A:=BARSLAST(REF(HOUR,1)=15 AND HOUR<>15);
P:=(A1 + A2 + A3)/3;
DRAWSL(ISLASTBAR,(A1 + A2 + A3)/3,0,A,1),LINETHICK2,COLOR0080FF;
DRAWSL(ISLASTBAR,P + (R * 2),0,A,1),LINETHICK1,COLOR0000FF;
DRAWSL(ISLASTBAR,P + (R * 1.618),0,A,1),LINETHICK1,COLORFFFF00;
DRAWSL(ISLASTBAR,P + (R * 1.382),0,A,1),LINETHICK1,COLORC0C0C0;
DRAWSL(ISLASTBAR,P + (R * 1.000),0,A,1),LINETHICK2,COLOR0000FF;
DRAWSL(ISLASTBAR,P + (R * 0.75),0,A,1),LINETHICK1,COLORFFFF00;
DRAWSL(ISLASTBAR,P + (R * 0.618),0,A,1),LINETHICK1,COLORFFFF00;
DRAWSL(ISLASTBAR,P + (R * 0.382),0,A,1),LINETHICK1,COLORC0C0C0;
DRAWSL(ISLASTBAR,P + (R * 0.25),0,A,1),LINETHICK1,COLORC0C0C0;
DRAWSL(ISLASTBAR,P - (R * 0.25),0,A,1),LINETHICK1,COLORC0C0C0;



DRAWNUMBER(ISLASTBAR,P,P,0),ALIGN0,COLOR0080FF;
DRAWNUMBER(ISLASTBAR,P + (R * 1.618),P + (R * 1.618),0),ALIGN0,COLORFFFF00;
DRAWNUMBER(ISLASTBAR,P + (R * 1.382),P + (R * 1.382),0),ALIGN0,COLORC0C0C0;
DRAWNUMBER(ISLASTBAR,P + (R * 1),P + (R * 1),0),ALIGN0,COLOR0000FF;
DRAWNUMBER(ISLASTBAR,P + (R * 0.75),P + (R * 0.75),0),ALIGN0,COLORFFFF00;
DRAWNUMBER(ISLASTBAR,P + (R * 0.618),P + (R * 0.618),0),ALIGN0,COLORFFFF00;
DRAWNUMBER(ISLASTBAR,P + (R * 0.382),P + (R * 0.382),0),ALIGN0,COLORC0C0C0;
DRAWNUMBER(ISLASTBAR,P + (R * 0.25),P + (R * 0.25),0),ALIGN0,COLORC0C0C0;

 

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

博易技术人员: A1:= STKCALC('',6,'ref(h,1)');
A2:= STKCALC('',6,'ref(l,1)');
A3:= STKCALC('',6,'ref(c,1)');
R:=A1 - A2;//RANGE
A:=BARSLAST(REF(HOUR,1)=15 AND HOUR<>15);
P:=(A1 + A2 + A3)/3;
DRAWSL(ISLASTBAR,(A1 + A2 + A3)/3,0,A,1),LINETHICK2,COLOR0080FF;
DRAWSL(ISLASTBAR,P + (R * 2),0,A,1),LINETHICK1,COLOR0000FF;
DRAWSL(ISLASTBAR,P + (R * 1.618),0,A,1),LINETHICK1,COLORFFFF00;
DRAWSL(ISLASTBAR,P + (R * 1.382),0,A,1),LINETHICK1,COLORC0C0C0;
DRAWSL(ISLASTBAR,P + (R * 1.000),0,A,1),LINETHICK2,COLOR0000FF;
DRAWSL(ISLASTBAR,P + (R * 0.75),0,A,1),LINETHICK1,COLORFFFF00;
DRAWSL(ISLASTBAR,P + (R * 0.618),0,A,1),LINETHICK1,COLORFFFF00;
DRAWSL(ISLASTBAR,P + (R * 0.382),0,A,1),LINETHICK1,COLORC0C0C0;
DRAWSL(ISLASTBAR,P + (R * 0.25),0,A,1),LINETHICK1,COLORC0C0C0;
DRAWSL(ISLASTBAR,P - (R * 0.25),0,A,1),LINETHICK1,COLORC0C0C0;



DRAWNUMBER(REF(HOUR,1)=15 AND HOUR<>15,P,P,0),ALIGN2,COLOR0080FF;
DRAWNUMBER(REF(HOUR,1)=15 AND HOUR<>15,P + (R * 1.618),P + (R * 1.618),0),ALIGN2,COLORFFFF00;
DRAWNUMBER(REF(HOUR,1)=15 AND HOUR<>15,P + (R * 1.382),P + (R * 1.382),0),ALIGN2,COLORC0C0C0;
DRAWNUMBER(REF(HOUR,1)=15 AND HOUR<>15,P + (R * 1),P + (R * 1),0),ALIGN2,COLOR0000FF;
DRAWNUMBER(REF(HOUR,1)=15 AND HOUR<>15,P + (R * 0.75),P + (R * 0.75),0),ALIGN2,COLORFFFF00;
DRAWNUMBER(REF(HOUR,1)=15 AND HOUR<>15,P + (R * 0.618),P + (R * 0.618),0),ALIGN2,COLORFFFF00;
DRAWNUMBER(REF(HOUR,1)=15 AND HOUR<>15,P + (R * 0.382),P + (R * 0.382),0),ALIGN2,COLORC0C0C0;
DRAWNUMBER(REF(HOUR,1)=15 AND HOUR<>15,P + (R * 0.25),P + (R * 0.25),0),ALIGN2,COLORC0C0C0; 謝謝老師,但是数字和横线位置不对应,并且横线位置不是数字位置。还要麻烦你。 来源 程序化久久网

 

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

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

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

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


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

相关文章

    没有相关内容