显示不正常怎么回事 请帮我修改一下参数好吗 谢谢 [博易POBO]
咨询内容:
ALIGN(N)
用逗号分隔放在DRAWICON、DRAWBMP、DRAWTEXT、DRAWNUMBER语句之后,设定绘图水平对齐方式。
N为常数,0-左对齐,1-居中,2-右对齐。未指定ALIGN时默认为左对齐。
例如:
DRAWTEXT(CROSS(MA(C,5),MA(C,10)),C,'上穿'),ALIGN(0)
表示当5日均线上穿10日均线时,在收盘价位置输出字符串“上穿”,字符串左边缘与当前周期坐标线对齐。 {轴心+昨天高低}
NN:=IF(DATE<>REF(DATE,1),0,BARSLAST(DATE<>REF(DATE,1)))+1;
H1:=REF(HHV(HIGH,NN),NN);
L1:=REF(LLV(LOW,NN),NN);
JK:=REF(O,BARSLAST(DAY<>REF(DAY,1))),COLORWHITE;
C1:=REF(C,BARSLAST(DAY>REF(DAY,1))+1);
ZX:=(H1+L1+C1)/3,COLORYELLOW,LINETHICK2;
STICKLINE(JK>0,JK,JK,15,0),COLOR00FFFF;
{黄金线}
A:=REF(HHV(H,89),2);
B:=REF(LLV(L,89),2);
H191:=A-(A-B)*0.191,COLOR00FF00,LINETHICK2;
H809:=A-(A-B)*0.809,COLOR4080FF,LINETHICK2;
{火车轨}
MA1:=MA(HIGH,60),COLORFFFFFF;
MA2:=MA(LOW,60),COLORFFFFFF;
Q60:MA(CLOSE,60),LINETHICK2,COLORFFFFFF;
{均线变色:红买,蓝卖,黄等待}
STICKLINE((CLOSE>=H809ANDCLOSE>=ZXANDCLOSE>=MA1ORCLOSE>ZXANDCLOSE>H191ANDCLOSE<MA1),O,C,10,1),COLORRED;
STICKLINE((CLOSE>=H809ANDCLOSE>=ZXANDCLOSE>=MA1ORCLOSE>ZXANDCLOSE>H191ANDCLOSE<MA1),O,L,0.5,0),COLORRED;
STICKLINE((CLOSE>=H809ANDCLOSE>=ZXANDCLOSE>=MA1ORCLOSE>ZXANDCLOSE>H191ANDCLOSE<MA1),C,H,0.5,0),COLORRED;
STICKLINE((CLOSE<=ZXANDCLOSE<=H191ANDCLOSE<=MA2ORCLOSE<=ZXANDCLOSE<191ANDCLOSE>MA2),O,C,10,1),COLORCYAN;
STICKLINE((CLOSE<=ZXANDCLOSE<=H191ANDCLOSE<=MA2ORCLOSE<=ZXANDCLOSE<191ANDCLOSE>MA2),O,H,0.5,0),COLORCYAN;
STICKLINE((CLOSE<=ZXANDCLOSE<=H191ANDCLOSE<=MA2ORCLOSE<=ZXANDCLOSE<191ANDCLOSE>MA2),C,L,0.5,0),COLORCYAN;
STICKLINE((CLOSE<=H809ANDCLOSE<=ZXANDCLOSE>MA2ORCLOSE<=H809ANDCLOSE>=ZXANDCLOSE>MA2ORCLOSE>=H809ANDCLOSE<=ZXANDCLOSE>MA2ORCLOSE>ZXANDCLOSE<H191ANDCLOSE<MA1ORCLOSE<ZXANDCLOSE>H191ANDCLOSE<MA1ORCLOSE>ZXANDCLOSE>H191ANDCLOSE<MA1),O,C,10,1),COLOR00FFFF;
STICKLINE((CLOSE<=H809ANDCLOSE<=ZXANDCLOSE>MA2ORCLOSE<=H809ANDCLOSE>=ZXANDCLOSE>MA2ORCLOSE>=H809ANDCLOSE<=ZXANDCLOSE>MA2ORCLOSE>ZXANDCLOSE<H191ANDCLOSE<MA1ORCLOSE<ZXANDCLOSE>H191ANDCLOSE<MA1ORCLOSE>ZXANDCLOSE>H191ANDCLOSE<MA1),O,H,0.5,0),COLOR00FFFF;
STICKLINE((CLOSE<=H809ANDCLOSE<=ZXANDCLOSE>MA2ORCLOSE<=H809ANDCLOSE>=ZXANDCLOSE>MA2ORCLOSE>=H809ANDCLOSE<=ZXANDCLOSE>MA2ORCLOSE>ZXANDCLOSE<H191ANDCLOSE<MA1ORCLOSE<ZXANDCLOSE>H191ANDCLOSE<MA1ORCLOSE>ZXANDCLOSE>H191ANDCLOSE<MA1),C,L,0.5,0),COLOR00FFFF; 来源 程序化久久网
显示不正常怎么回事 请帮我修改一下参数好吗 谢谢
K线中间的高底线有点偏向右了 我想让它回到K线实体中间 怎么做呢 调整了参数(0,C,10,1),我把10改成别的数字也不居中,以前我就改这个就可以了 现在怎么不行了呢 急急急 请客服帮帮我 看我一个女孩子也不会编程 帮帮我吧 <!-- 咨询内容:附件 :
-->
来源:程序化99网( WWW.CXH99.COM )
博易技术人员: 您好,可以使用以下函数对齐,下方您可以看下使用方法。ALIGN(N)
用逗号分隔放在DRAWICON、DRAWBMP、DRAWTEXT、DRAWNUMBER语句之后,设定绘图水平对齐方式。
N为常数,0-左对齐,1-居中,2-右对齐。未指定ALIGN时默认为左对齐。
例如:
DRAWTEXT(CROSS(MA(C,5),MA(C,10)),C,'上穿'),ALIGN(0)
表示当5日均线上穿10日均线时,在收盘价位置输出字符串“上穿”,字符串左边缘与当前周期坐标线对齐。 {轴心+昨天高低}
NN:=IF(DATE<>REF(DATE,1),0,BARSLAST(DATE<>REF(DATE,1)))+1;
H1:=REF(HHV(HIGH,NN),NN);
L1:=REF(LLV(LOW,NN),NN);
JK:=REF(O,BARSLAST(DAY<>REF(DAY,1))),COLORWHITE;
C1:=REF(C,BARSLAST(DAY>REF(DAY,1))+1);
ZX:=(H1+L1+C1)/3,COLORYELLOW,LINETHICK2;
STICKLINE(JK>0,JK,JK,15,0),COLOR00FFFF;
{黄金线}
A:=REF(HHV(H,89),2);
B:=REF(LLV(L,89),2);
H191:=A-(A-B)*0.191,COLOR00FF00,LINETHICK2;
H809:=A-(A-B)*0.809,COLOR4080FF,LINETHICK2;
{火车轨}
MA1:=MA(HIGH,60),COLORFFFFFF;
MA2:=MA(LOW,60),COLORFFFFFF;
Q60:MA(CLOSE,60),LINETHICK2,COLORFFFFFF;
{均线变色:红买,蓝卖,黄等待}
STICKLINE((CLOSE>=H809ANDCLOSE>=ZXANDCLOSE>=MA1ORCLOSE>ZXANDCLOSE>H191ANDCLOSE<MA1),O,C,10,1),COLORRED;
STICKLINE((CLOSE>=H809ANDCLOSE>=ZXANDCLOSE>=MA1ORCLOSE>ZXANDCLOSE>H191ANDCLOSE<MA1),O,L,0.5,0),COLORRED;
STICKLINE((CLOSE>=H809ANDCLOSE>=ZXANDCLOSE>=MA1ORCLOSE>ZXANDCLOSE>H191ANDCLOSE<MA1),C,H,0.5,0),COLORRED;
STICKLINE((CLOSE<=ZXANDCLOSE<=H191ANDCLOSE<=MA2ORCLOSE<=ZXANDCLOSE<191ANDCLOSE>MA2),O,C,10,1),COLORCYAN;
STICKLINE((CLOSE<=ZXANDCLOSE<=H191ANDCLOSE<=MA2ORCLOSE<=ZXANDCLOSE<191ANDCLOSE>MA2),O,H,0.5,0),COLORCYAN;
STICKLINE((CLOSE<=ZXANDCLOSE<=H191ANDCLOSE<=MA2ORCLOSE<=ZXANDCLOSE<191ANDCLOSE>MA2),C,L,0.5,0),COLORCYAN;
STICKLINE((CLOSE<=H809ANDCLOSE<=ZXANDCLOSE>MA2ORCLOSE<=H809ANDCLOSE>=ZXANDCLOSE>MA2ORCLOSE>=H809ANDCLOSE<=ZXANDCLOSE>MA2ORCLOSE>ZXANDCLOSE<H191ANDCLOSE<MA1ORCLOSE<ZXANDCLOSE>H191ANDCLOSE<MA1ORCLOSE>ZXANDCLOSE>H191ANDCLOSE<MA1),O,C,10,1),COLOR00FFFF;
STICKLINE((CLOSE<=H809ANDCLOSE<=ZXANDCLOSE>MA2ORCLOSE<=H809ANDCLOSE>=ZXANDCLOSE>MA2ORCLOSE>=H809ANDCLOSE<=ZXANDCLOSE>MA2ORCLOSE>ZXANDCLOSE<H191ANDCLOSE<MA1ORCLOSE<ZXANDCLOSE>H191ANDCLOSE<MA1ORCLOSE>ZXANDCLOSE>H191ANDCLOSE<MA1),O,H,0.5,0),COLOR00FFFF;
STICKLINE((CLOSE<=H809ANDCLOSE<=ZXANDCLOSE>MA2ORCLOSE<=H809ANDCLOSE>=ZXANDCLOSE>MA2ORCLOSE>=H809ANDCLOSE<=ZXANDCLOSE>MA2ORCLOSE>ZXANDCLOSE<H191ANDCLOSE<MA1ORCLOSE<ZXANDCLOSE>H191ANDCLOSE<MA1ORCLOSE>ZXANDCLOSE>H191ANDCLOSE<MA1),C,L,0.5,0),COLOR00FFFF; 来源 程序化久久网
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容