谢谢老师,帮忙修改一下指标能在博易大师附图上使用, [博易POBO]
咨询内容:
N 1 30 1
XOPEN:=(REF(O,N)+REF(C,N))/2;
XCLOSE:=CLOSE;
XHIGH:=MAX(HIGH,XOPEN);
XLOW:=MIN(LOW,XOPEN);
VOLALITY:=MA(XHIGH-XLOW,8);
凰线:MA(XCLOSE,5)+VOLALITY/2,COLORFFFFFF,{DOTLINE},LINETHICK1;
凤线:MA(XCLOSE,5)-VOLALITY/2,COLOR00FFFF,{DOTLINE},LINETHICK1;
BU:=CROSS(XCLOSE,凰线);
SEL:=CROSS(凤线,XCLOSE);
VAR1:=BARSLAST(BU);
VAR2:=BARSLAST(SEL);
STICKLINE(XCLOSE>XOPEN AND VAR1<VAR2,XCLOSE,XOPEN ,3,0 ),COLOR990099;
STICKLINE(XCLOSE>XOPEN AND VAR1<VAR2,XHIGH,XCLOSE ,0.5,0 ),COLOR990099;
STICKLINE(XCLOSE>XOPEN AND VAR1<VAR2,XOPEN,XLOW ,0.5,0 ),COLOR990099;
STICKLINE(XCLOSE<=XOPEN AND VAR1<VAR2,XCLOSE,XOPEN ,3,0 ),COLORYELLOW;
STICKLINE(XCLOSE<=XOPEN AND VAR1<VAR2,XHIGH,XOPEN ,0.5,0 ),COLORYELLOW;
STICKLINE(XCLOSE<=XOPEN AND VAR1<VAR2,XCLOSE,XLOW ,0.5,0 ),COLORYELLOW;
STICKLINE(XCLOSE<=XOPEN AND VAR1>VAR2,XCLOSE ,XOPEN ,3,0 ),COLOR008800;
STICKLINE(XCLOSE<=XOPEN AND VAR1>VAR2,XOPEN ,XHIGH ,0.5,0 ),COLOR008800;
STICKLINE(XCLOSE<=XOPEN AND VAR1>VAR2,XCLOSE,XLOW ,0.5,0 ),COLOR008800;
STICKLINE(XCLOSE>XOPEN AND VAR1>VAR2,XCLOSE ,XOPEN ,3,0 ),COLORFF3300;
STICKLINE(XCLOSE>XOPEN AND VAR1>VAR2,XCLOSE,XHIGH ,0.5,0 ),COLORFF3300;
STICKLINE(XCLOSE>XOPEN AND VAR1>VAR2,XOPEN,XLOW ,0.5,0 ),COLORFF3300;
DRAWICON(REF(VAR1,1)>VAR2 AND VAR1=0,XLOW,1),{ALIGN1,VALIGN0};
DRAWICON(REF(VAR2,1)>VAR1 AND VAR2=0,XHIGH,2),{ALIGN1,VALIGN2};
思路:
XOPEN赋值:(N日前的开盘价+N日前的收盘价)/2
XCLOSE赋值:收盘价
XHIGH赋值:最高价和XOPEN的较大值
XLOW赋值:最低价和XOPEN的较小值
VOLALITY赋值:XHIGH-XLOW的8日简单移动平均
输出凰线:XCLOSE的5日简单移动平均+VOLALITY/2,COLORFFFFFF,,线宽为1
输出凤线:XCLOSE的5日简单移动平均-VOLALITY/2,COLOR00FFFF,,线宽为1
BU赋值:XCLOSE上穿凰线
SEL赋值:凤线上穿XCLOSE
VAR1赋值:上次BU距今天数
VAR2赋值:上次SEL距今天数
当满足条件XCLOSE>XOPENANDVAR1<VAR2时,在XCLOSE和XOPEN位置之间画柱状线,宽度为3,0不为0则画空心柱.,COLOR990099
当满足条件XCLOSE>XOPENANDVAR1<VAR2时,在XHIGH和XCLOSE位置之间画柱状线,宽度为0.5,0不为0则画空心柱.,COLOR990099
当满足条件XCLOSE>XOPENANDVAR1<VAR2时,在XOPEN和XLOW位置之间画柱状线,宽度为0.5,0不为0则画空心柱.,COLOR990099
当满足条件XCLOSE<=XOPENANDVAR1<VAR2时,在XCLOSE和XOPEN位置之间画柱状线,宽度为3,0不为0则画空心柱.,画黄色
当满足条件XCLOSE<=XOPENANDVAR1<VAR2时,在XHIGH和XOPEN位置之间画柱状线,宽度为0.5,0不为0则画空心柱.,画黄色
当满足条件XCLOSE<=XOPENANDVAR1<VAR2时,在XCLOSE和XLOW位置之间画柱状线,宽度为0.5,0不为0则画空心柱.,画黄色
当满足条件XCLOSE<=XOPENANDVAR1>VAR2时,在XCLOSE和XOPEN位置之间画柱状线,宽度为3,0不为0则画空心柱.,COLOR008800
当满足条件XCLOSE<=XOPENANDVAR1>VAR2时,在XOPEN和XHIGH位置之间画柱状线,宽度为0.5,0不为0则画空心柱.,COLOR008800
当满足条件XCLOSE<=XOPENANDVAR1>VAR2时,在XCLOSE和XLOW位置之间画柱状线,宽度为0.5,0不为0则画空心柱.,COLOR008800
当满足条件XCLOSE>XOPENANDVAR1>VAR2时,在XCLOSE和XOPEN位置之间画柱状线,宽度为3,0不为0则画空心柱.,COLORFF3300
当满足条件XCLOSE>XOPENANDVAR1>VAR2时,在XCLOSE和XHIGH位置之间画柱状线,宽度为0.5,0不为0则画空心柱.,COLORFF3300
当满足条件XCLOSE>XOPENANDVAR1>VAR2时,在XOPEN和XLOW位置之间画柱状线,宽度为0.5,0不为0则画空心柱.,COLORFF3300
当满足条件1日前的VAR1>VAR2ANDVAR1=0时,在XLOW位置画1号图标,
当满足条件1日前的VAR2>VAR1ANDVAR2=0时,在XHIGH位置画2号图标,
<!-- 咨询内容:
XOPEN:=(REF(O,N)+REF(C,N))/2;
XCLOSE:=CLOSE;
XHIGH:=MAX(HIGH,XOPEN);
XLOW:=MIN(LOW,XOPEN);
VOLALITY:=MA(XHIGH-XLOW,8);
凰线:MA(XCLOSE,5)+VOLALITY/2,COLORFFFFFF,LINETHICK1;
凤线:MA(XCLOSE,5)-VOLALITY/2,COLOR00FFFF,LINETHICK1;
BU:=CROSS(XCLOSE,凰线);
SEL:=CROSS(凤线,XCLOSE);
VAR1:=BARSLAST(BU);
VAR2:=BARSLAST(SEL);
STICKLINE(XCLOSE>XOPEN AND VAR1<VAR2,XCLOSE,XOPEN ,3,0 ),COLOR990099;
STICKLINE(XCLOSE>XOPEN AND VAR1<VAR2,XHIGH,XCLOSE ,0.5,0 ),COLOR990099;
STICKLINE(XCLOSE>XOPEN AND VAR1<VAR2,XOPEN,XLOW ,0.5,0 ),COLOR990099;
STICKLINE(XCLOSE<=XOPEN AND VAR1<VAR2,XCLOSE,XOPEN ,3,0 ),COLORYELLOW;
STICKLINE(XCLOSE<=XOPEN AND VAR1<VAR2,XHIGH,XOPEN ,0.5,0 ),COLORYELLOW;
STICKLINE(XCLOSE<=XOPEN AND VAR1<VAR2,XCLOSE,XLOW ,0.5,0 ),COLORYELLOW;
STICKLINE(XCLOSE<=XOPEN AND VAR1>VAR2,XCLOSE ,XOPEN ,3,0 ),COLOR008800;
STICKLINE(XCLOSE<=XOPEN AND VAR1>VAR2,XOPEN ,XHIGH ,0.5,0 ),COLOR008800;
STICKLINE(XCLOSE<=XOPEN AND VAR1>VAR2,XCLOSE,XLOW ,0.5,0 ),COLOR008800;
STICKLINE(XCLOSE>XOPEN AND VAR1>VAR2,XCLOSE ,XOPEN ,3,0 ),COLORFF3300;
STICKLINE(XCLOSE>XOPEN AND VAR1>VAR2,XCLOSE,XHIGH ,0.5,0 ),COLORFF3300;
STICKLINE(XCLOSE>XOPEN AND VAR1>VAR2,XOPEN,XLOW ,0.5,0 ),COLORFF3300;
DRAWICON(REF(VAR1,1)>VAR2 AND VAR1=0,XLOW,1);
DRAWICON(REF(VAR2,1)>VAR1 AND VAR2=0,XHIGH,2); 谢谢老师。 来源 程序化久久网
谢谢老师,帮忙修改一下指标能在博易大师附图上使用,
老师请帮忙修改能在博易大师附图上使用,效果图:N 1 30 1
XOPEN:=(REF(O,N)+REF(C,N))/2;
XCLOSE:=CLOSE;
XHIGH:=MAX(HIGH,XOPEN);
XLOW:=MIN(LOW,XOPEN);
VOLALITY:=MA(XHIGH-XLOW,8);
凰线:MA(XCLOSE,5)+VOLALITY/2,COLORFFFFFF,{DOTLINE},LINETHICK1;
凤线:MA(XCLOSE,5)-VOLALITY/2,COLOR00FFFF,{DOTLINE},LINETHICK1;
BU:=CROSS(XCLOSE,凰线);
SEL:=CROSS(凤线,XCLOSE);
VAR1:=BARSLAST(BU);
VAR2:=BARSLAST(SEL);
STICKLINE(XCLOSE>XOPEN AND VAR1<VAR2,XCLOSE,XOPEN ,3,0 ),COLOR990099;
STICKLINE(XCLOSE>XOPEN AND VAR1<VAR2,XHIGH,XCLOSE ,0.5,0 ),COLOR990099;
STICKLINE(XCLOSE>XOPEN AND VAR1<VAR2,XOPEN,XLOW ,0.5,0 ),COLOR990099;
STICKLINE(XCLOSE<=XOPEN AND VAR1<VAR2,XCLOSE,XOPEN ,3,0 ),COLORYELLOW;
STICKLINE(XCLOSE<=XOPEN AND VAR1<VAR2,XHIGH,XOPEN ,0.5,0 ),COLORYELLOW;
STICKLINE(XCLOSE<=XOPEN AND VAR1<VAR2,XCLOSE,XLOW ,0.5,0 ),COLORYELLOW;
STICKLINE(XCLOSE<=XOPEN AND VAR1>VAR2,XCLOSE ,XOPEN ,3,0 ),COLOR008800;
STICKLINE(XCLOSE<=XOPEN AND VAR1>VAR2,XOPEN ,XHIGH ,0.5,0 ),COLOR008800;
STICKLINE(XCLOSE<=XOPEN AND VAR1>VAR2,XCLOSE,XLOW ,0.5,0 ),COLOR008800;
STICKLINE(XCLOSE>XOPEN AND VAR1>VAR2,XCLOSE ,XOPEN ,3,0 ),COLORFF3300;
STICKLINE(XCLOSE>XOPEN AND VAR1>VAR2,XCLOSE,XHIGH ,0.5,0 ),COLORFF3300;
STICKLINE(XCLOSE>XOPEN AND VAR1>VAR2,XOPEN,XLOW ,0.5,0 ),COLORFF3300;
DRAWICON(REF(VAR1,1)>VAR2 AND VAR1=0,XLOW,1),{ALIGN1,VALIGN0};
DRAWICON(REF(VAR2,1)>VAR1 AND VAR2=0,XHIGH,2),{ALIGN1,VALIGN2};
思路:
XOPEN赋值:(N日前的开盘价+N日前的收盘价)/2
XCLOSE赋值:收盘价
XHIGH赋值:最高价和XOPEN的较大值
XLOW赋值:最低价和XOPEN的较小值
VOLALITY赋值:XHIGH-XLOW的8日简单移动平均
输出凰线:XCLOSE的5日简单移动平均+VOLALITY/2,COLORFFFFFF,,线宽为1
输出凤线:XCLOSE的5日简单移动平均-VOLALITY/2,COLOR00FFFF,,线宽为1
BU赋值:XCLOSE上穿凰线
SEL赋值:凤线上穿XCLOSE
VAR1赋值:上次BU距今天数
VAR2赋值:上次SEL距今天数
当满足条件XCLOSE>XOPENANDVAR1<VAR2时,在XCLOSE和XOPEN位置之间画柱状线,宽度为3,0不为0则画空心柱.,COLOR990099
当满足条件XCLOSE>XOPENANDVAR1<VAR2时,在XHIGH和XCLOSE位置之间画柱状线,宽度为0.5,0不为0则画空心柱.,COLOR990099
当满足条件XCLOSE>XOPENANDVAR1<VAR2时,在XOPEN和XLOW位置之间画柱状线,宽度为0.5,0不为0则画空心柱.,COLOR990099
当满足条件XCLOSE<=XOPENANDVAR1<VAR2时,在XCLOSE和XOPEN位置之间画柱状线,宽度为3,0不为0则画空心柱.,画黄色
当满足条件XCLOSE<=XOPENANDVAR1<VAR2时,在XHIGH和XOPEN位置之间画柱状线,宽度为0.5,0不为0则画空心柱.,画黄色
当满足条件XCLOSE<=XOPENANDVAR1<VAR2时,在XCLOSE和XLOW位置之间画柱状线,宽度为0.5,0不为0则画空心柱.,画黄色
当满足条件XCLOSE<=XOPENANDVAR1>VAR2时,在XCLOSE和XOPEN位置之间画柱状线,宽度为3,0不为0则画空心柱.,COLOR008800
当满足条件XCLOSE<=XOPENANDVAR1>VAR2时,在XOPEN和XHIGH位置之间画柱状线,宽度为0.5,0不为0则画空心柱.,COLOR008800
当满足条件XCLOSE<=XOPENANDVAR1>VAR2时,在XCLOSE和XLOW位置之间画柱状线,宽度为0.5,0不为0则画空心柱.,COLOR008800
当满足条件XCLOSE>XOPENANDVAR1>VAR2时,在XCLOSE和XOPEN位置之间画柱状线,宽度为3,0不为0则画空心柱.,COLORFF3300
当满足条件XCLOSE>XOPENANDVAR1>VAR2时,在XCLOSE和XHIGH位置之间画柱状线,宽度为0.5,0不为0则画空心柱.,COLORFF3300
当满足条件XCLOSE>XOPENANDVAR1>VAR2时,在XOPEN和XLOW位置之间画柱状线,宽度为0.5,0不为0则画空心柱.,COLORFF3300
当满足条件1日前的VAR1>VAR2ANDVAR1=0时,在XLOW位置画1号图标,
当满足条件1日前的VAR2>VAR1ANDVAR2=0时,在XHIGH位置画2号图标,
<!-- 咨询内容:
附件 :
-->
来源:程序化99网( WWW.CXH99.COM )
博易技术人员: N:=1;XOPEN:=(REF(O,N)+REF(C,N))/2;
XCLOSE:=CLOSE;
XHIGH:=MAX(HIGH,XOPEN);
XLOW:=MIN(LOW,XOPEN);
VOLALITY:=MA(XHIGH-XLOW,8);
凰线:MA(XCLOSE,5)+VOLALITY/2,COLORFFFFFF,LINETHICK1;
凤线:MA(XCLOSE,5)-VOLALITY/2,COLOR00FFFF,LINETHICK1;
BU:=CROSS(XCLOSE,凰线);
SEL:=CROSS(凤线,XCLOSE);
VAR1:=BARSLAST(BU);
VAR2:=BARSLAST(SEL);
STICKLINE(XCLOSE>XOPEN AND VAR1<VAR2,XCLOSE,XOPEN ,3,0 ),COLOR990099;
STICKLINE(XCLOSE>XOPEN AND VAR1<VAR2,XHIGH,XCLOSE ,0.5,0 ),COLOR990099;
STICKLINE(XCLOSE>XOPEN AND VAR1<VAR2,XOPEN,XLOW ,0.5,0 ),COLOR990099;
STICKLINE(XCLOSE<=XOPEN AND VAR1<VAR2,XCLOSE,XOPEN ,3,0 ),COLORYELLOW;
STICKLINE(XCLOSE<=XOPEN AND VAR1<VAR2,XHIGH,XOPEN ,0.5,0 ),COLORYELLOW;
STICKLINE(XCLOSE<=XOPEN AND VAR1<VAR2,XCLOSE,XLOW ,0.5,0 ),COLORYELLOW;
STICKLINE(XCLOSE<=XOPEN AND VAR1>VAR2,XCLOSE ,XOPEN ,3,0 ),COLOR008800;
STICKLINE(XCLOSE<=XOPEN AND VAR1>VAR2,XOPEN ,XHIGH ,0.5,0 ),COLOR008800;
STICKLINE(XCLOSE<=XOPEN AND VAR1>VAR2,XCLOSE,XLOW ,0.5,0 ),COLOR008800;
STICKLINE(XCLOSE>XOPEN AND VAR1>VAR2,XCLOSE ,XOPEN ,3,0 ),COLORFF3300;
STICKLINE(XCLOSE>XOPEN AND VAR1>VAR2,XCLOSE,XHIGH ,0.5,0 ),COLORFF3300;
STICKLINE(XCLOSE>XOPEN AND VAR1>VAR2,XOPEN,XLOW ,0.5,0 ),COLORFF3300;
DRAWICON(REF(VAR1,1)>VAR2 AND VAR1=0,XLOW,1);
DRAWICON(REF(VAR2,1)>VAR1 AND VAR2=0,XHIGH,2); 谢谢老师。 来源 程序化久久网
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容