如何修改混沌均线适用于博易大师 [博易POBO]
咨询内容:
图二显示错误的原因
VAR:=REF(SMA(IF(CLOSE>REF(EMA(CLOSE,26),3),LOW,HIGH),26,1),3),LINETHICK2;
PARTLINE(VAR<REF(VAR,1),VAR),COLORFF0000,LINETHICK2;
PARTLINE(VAR>REF(VAR,1),VAR),COLOR0000FF,LINETHICK2;
乖离:100*(IF(CLOSE>REF(EMA(CLOSE,26),3),HIGH,LOW)-VAR)/VAR,LINETHICK0;
STICKLINE(ABS(乖离)>10,H,L,6,1),COLOR80FFFF;
UP:VAR+2*STDP(IF(CLOSE>REF(EMA(CLOSE,26),3),LOW,HIGH),26);
DOWN:VAR-2*STDP(IF(CLOSE>REF(EMA(CLOSE,26),3),LOW,HIGH),26);
SAR_POBO(26,1,4),CIRCLEDOT; <!-- 咨询内容:
N:=1;{可调整}
A:=VAR(REF(SMA(IF(CLOSE>REF(EMA(CLOSE,26),3),LOW,HIGH),26,1),3),N),LINETHICK2;
{A可自定义其它名称}
PARTLINE(A<REF(A,1),A),COLORFF0000,LINETHICK2;
PARTLINE(A>REF(A,1),A),COLOR0000FF,LINETHICK2;
乖离:100*(IF(CLOSE>REF(EMA(CLOSE,26),3),HIGH,LOW)-A)/A,LINETHICK0;
STICKLINE(ABS(乖离)>10,H,L,6,1),COLOR80FFFF;
UP:A+2*STDP(IF(CLOSE>REF(EMA(CLOSE,26),3),LOW,HIGH),26);
DOWN:A-2*STDP(IF(CLOSE>REF(EMA(CLOSE,26),3),LOW,HIGH),26);
SAR_POBO(26,1,4),CIRCLEDOT;
MID := EMA(CLOSE,26);
UPPER: MID + 2*STD(CLOSE,26);
LOWER: MID - 2*STD(CLOSE,26);
PARTLINE(MID>REF(MID,1),MID),COLOR0000FF,LINETHICK2;
谢谢楼上老师指点
关于混沌均线画线引导的静动态转换,两位老师提示:
1定义动态变量;2静态变量转换;3设计画线算法
http://y.baidu.com/guzheng
来源 程序化久久网
如何修改混沌均线适用于博易大师
请问如何修改以下代码,以图一那样显示??图二显示错误的原因
VAR:=REF(SMA(IF(CLOSE>REF(EMA(CLOSE,26),3),LOW,HIGH),26,1),3),LINETHICK2;
PARTLINE(VAR<REF(VAR,1),VAR),COLORFF0000,LINETHICK2;
PARTLINE(VAR>REF(VAR,1),VAR),COLOR0000FF,LINETHICK2;
乖离:100*(IF(CLOSE>REF(EMA(CLOSE,26),3),HIGH,LOW)-VAR)/VAR,LINETHICK0;
STICKLINE(ABS(乖离)>10,H,L,6,1),COLOR80FFFF;
UP:VAR+2*STDP(IF(CLOSE>REF(EMA(CLOSE,26),3),LOW,HIGH),26);
DOWN:VAR-2*STDP(IF(CLOSE>REF(EMA(CLOSE,26),3),LOW,HIGH),26);
SAR_POBO(26,1,4),CIRCLEDOT; <!-- 咨询内容:
附件 :
-->
来源:程序化99网( WWW.CXH99.COM )
博易技术人员: 我只能帮你改正错误,有关参数你自己调整,并且只适用于博易云;N:=1;{可调整}
A:=VAR(REF(SMA(IF(CLOSE>REF(EMA(CLOSE,26),3),LOW,HIGH),26,1),3),N),LINETHICK2;
{A可自定义其它名称}
PARTLINE(A<REF(A,1),A),COLORFF0000,LINETHICK2;
PARTLINE(A>REF(A,1),A),COLOR0000FF,LINETHICK2;
乖离:100*(IF(CLOSE>REF(EMA(CLOSE,26),3),HIGH,LOW)-A)/A,LINETHICK0;
STICKLINE(ABS(乖离)>10,H,L,6,1),COLOR80FFFF;
UP:A+2*STDP(IF(CLOSE>REF(EMA(CLOSE,26),3),LOW,HIGH),26);
DOWN:A-2*STDP(IF(CLOSE>REF(EMA(CLOSE,26),3),LOW,HIGH),26);
SAR_POBO(26,1,4),CIRCLEDOT;
MID := EMA(CLOSE,26);
UPPER: MID + 2*STD(CLOSE,26);
LOWER: MID - 2*STD(CLOSE,26);
PARTLINE(MID>REF(MID,1),MID),COLOR0000FF,LINETHICK2;
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 262069696 或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,谢谢您!)
相关文章
-
没有相关内容