老师,我这个在软件上编译通过,主图显示不了,麻烦帮我看看!谢谢 [博易POBO]
咨询内容:
H2:=REFX(BARSLAST(H1<>0),DATACOUNT-BARPOS);
H3:=REFX(IF(H2=0,C,REF(C,H2)),DATACOUNT-BARPOS);
H4:=REFX(REF(BARSLAST(C<H3),H2+1)+H2+1,DATACOUNT-BARPOS);
H5:=REFX(IF(H4=0,C,REF(C,H4)),DATACOUNT-BARPOS);
H6:=REFX(REF(BARSLAST(C<H5),H4+1)+H4+1,DATACOUNT-BARPOS);
AD3:=IF(高点=1,DATACOUNT-BARPOS+1<=H2,0);
AD4:=IF(高点=1,BARSTATUS=2,0);
WG1:=IF(DATACOUNT-BARPOS+1<=H2,REFX(IF(H2=0,H,REF(H,H2)),DATACOUNT-BARPOS),0);
WD1:=IF(DATACOUNT-BARPOS+1<=H2,REFX(IF(H2=0,L,REF(L,H2)),DATACOUNT-BARPOS),0);
{STICKLINE(AD3,WG1,WD1,10,0),COLOR1A1A10;
STICKLINE(AD3,WG1,WG1,12,1),COLOR804000;
DRAWNUMBER(AD4,WG1,WG1,位数),COLOR804000,ALIGN0;}
STICKLINE(AD3,WD1,WD1,10,1),COLOR804000;
DRAWNUMBER(AD4,WD1,WD1,位数),COLOR804000,ALIGN0;
WGDC:=IF(DATACOUNT-BARPOS+1<=H2,REFX(IF(H2=0,C,REF(C,H2)),DATACOUNT-BARPOS),0);
STICKLINE(AD3,WGDC,WGDC,4,1),COLOR008000;
DRAWNUMBER(AD4,WGDC,WGDC,位数),COLOR008000,ALIGN0;
WGDO:=IF(DATACOUNT-BARPOS+1<=H2,REFX(IF(H2=0,O,REF(O,H2)),DATACOUNT-BARPOS),0);
{STICKLINE(AD3,WGDO,WGDO,4,1),COLOR3A3A3A;
DRAWNUMBER(AD4,WGDO,WGDO,位数),COLOR3A3A3A,ALIGN0;}
{PARTLINE(AD3,REFX(IF(H2=0,O,(REF(H,H2)+REF(L,H2)))/2,DATACOUNT-BARPOS)),COLORFF00FF;
DRAWNUMBER(AD4,(REF(H,H2)+REF(L,H2))/2,(REF(H,H2)+REF(L,H2))/2,0),COLORFF00FF,ALIGN0;}
WGZ:=IF(DATACOUNT-BARPOS+1<=H2,REFX(IF(H2=0,O,(REF(H,H2)+REF(L,H2)))/2,DATACOUNT-BARPOS),0);
STICKLINE(AD3,WGZ,WGZ,6,1),COLORFF00FF;
DRAWNUMBER(AD4,WGZ,WGZ,位数),COLORFF00FF,ALIGN0;
老师,我这个在软件上编译通过,主图显示不了,麻烦帮我看看!谢谢
H1:=IF(H=HHV(H,GD),H,0);H2:=REFX(BARSLAST(H1<>0),DATACOUNT-BARPOS);
H3:=REFX(IF(H2=0,C,REF(C,H2)),DATACOUNT-BARPOS);
H4:=REFX(REF(BARSLAST(C<H3),H2+1)+H2+1,DATACOUNT-BARPOS);
H5:=REFX(IF(H4=0,C,REF(C,H4)),DATACOUNT-BARPOS);
H6:=REFX(REF(BARSLAST(C<H5),H4+1)+H4+1,DATACOUNT-BARPOS);
AD3:=IF(高点=1,DATACOUNT-BARPOS+1<=H2,0);
AD4:=IF(高点=1,BARSTATUS=2,0);
WG1:=IF(DATACOUNT-BARPOS+1<=H2,REFX(IF(H2=0,H,REF(H,H2)),DATACOUNT-BARPOS),0);
WD1:=IF(DATACOUNT-BARPOS+1<=H2,REFX(IF(H2=0,L,REF(L,H2)),DATACOUNT-BARPOS),0);
{STICKLINE(AD3,WG1,WD1,10,0),COLOR1A1A10;
STICKLINE(AD3,WG1,WG1,12,1),COLOR804000;
DRAWNUMBER(AD4,WG1,WG1,位数),COLOR804000,ALIGN0;}
STICKLINE(AD3,WD1,WD1,10,1),COLOR804000;
DRAWNUMBER(AD4,WD1,WD1,位数),COLOR804000,ALIGN0;
WGDC:=IF(DATACOUNT-BARPOS+1<=H2,REFX(IF(H2=0,C,REF(C,H2)),DATACOUNT-BARPOS),0);
STICKLINE(AD3,WGDC,WGDC,4,1),COLOR008000;
DRAWNUMBER(AD4,WGDC,WGDC,位数),COLOR008000,ALIGN0;
WGDO:=IF(DATACOUNT-BARPOS+1<=H2,REFX(IF(H2=0,O,REF(O,H2)),DATACOUNT-BARPOS),0);
{STICKLINE(AD3,WGDO,WGDO,4,1),COLOR3A3A3A;
DRAWNUMBER(AD4,WGDO,WGDO,位数),COLOR3A3A3A,ALIGN0;}
{PARTLINE(AD3,REFX(IF(H2=0,O,(REF(H,H2)+REF(L,H2)))/2,DATACOUNT-BARPOS)),COLORFF00FF;
DRAWNUMBER(AD4,(REF(H,H2)+REF(L,H2))/2,(REF(H,H2)+REF(L,H2))/2,0),COLORFF00FF,ALIGN0;}
WGZ:=IF(DATACOUNT-BARPOS+1<=H2,REFX(IF(H2=0,O,(REF(H,H2)+REF(L,H2)))/2,DATACOUNT-BARPOS),0);
STICKLINE(AD3,WGZ,WGZ,6,1),COLORFF00FF;
DRAWNUMBER(AD4,WGZ,WGZ,位数),COLORFF00FF,ALIGN0;
来源:程序化99网( WWW.CXH99.COM )
博易技术人员: 您好,公式不全,无法修改 您说得是高点和位数吗?这是个变量,是我自定义输入参数的 来源 程序化久久网
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容