这是文华上的一个波段指标,但博易上用不了,请高手改一下,加粗的地方有问题通不过 [博易POBO]
咨询内容:
HX:=HHV(HIGH,3);
LX:=LLV(LOW,3);
H1:=IFELSE(HX<REF(HX,1) AND HX<REF(HX,2) AND HX<REF(HX,4) AND LX<REF(LX,1) AND LX<REF(LX,3) AND LX<REF(LX,5) AND OPEN>CLOSE AND (HHV(OPEN,0)-CLOSE)>0,REF(HX,4),0);
L1:=IFELSE(LX>REF(LX,1) AND LX>REF(LX,3) AND LX>REF(LX,5) AND HX>REF(HX,1) AND HX>REF(HX,2) AND HX>REF(HX,4) AND OPEN<CLOSE AND (CLOSE-LLV(OPEN,0))>0,REF(LX,4),0);
H2:=VALUEWHEN(H1>0,H1);
L2:=VALUEWHEN(L1>0,L1);
K1:=IFELSE(CLOSE>H2,-3,IFELSE(CLOSE<L2,1,0));
K2:=VALUEWHEN(K1<>0,K1);
G:=IFELSE(K2=1,H2,L2);
TMP:=K2;
DRAWLINE(TMP=1 AND REF(TMP,1)=1,G,TMP=1 AND REF(TMP,1)=1,REF(G,1),COLORCYAN),LINETHICK2;
DRAWLINE(TMP=-3 AND REF(TMP,1)=-3,G,TMP=-3 AND REF(TMP,1)=-3,REF(G,1),COLORYELLOW),LINETHICK2;
DRAWSL(K2=1,G,0,1,0,COLORCYAN),LINETHICK2;
DRAWSL(K2=-3,G,0,1,0,COLORYELLOW),LINETHICK2;
DRAWTEXT(CROSS(TMP,0),HX,'卖↓');
DRAWTEXT(CROSS(0,TMP),LX,'买↑');
MA55:=MA(CLOSE,55);
DRAWTEXT(CROSS(TMP,0) AND CLOSE<=MA55,HX,'卖↓');
DRAWTEXT(CROSS(0,TMP) AND CLOSE>=MA55,LX,'买↑');
LX:=LLV(LOW,3);
H1:=IFELSE(HX<REF(HX,1) AND HX<REF(HX,2) AND HX<REF(HX,4) AND LX<REF(LX,1) AND LX<REF(LX,3) AND LX<REF(LX,5) AND OPEN>CLOSE AND (HHV(OPEN,0)-CLOSE)>0,REF(HX,4),0);
L1:=IFELSE(LX>REF(LX,1) AND LX>REF(LX,3) AND LX>REF(LX,5) AND HX>REF(HX,1) AND HX>REF(HX,2) AND HX>REF(HX,4) AND OPEN<CLOSE AND (CLOSE-LLV(OPEN,0))>0,REF(LX,4),0);
H2:=VALUEWHEN(H1>0,H1);
L2:=VALUEWHEN(L1>0,L1);
K1:=IFELSE(CLOSE>H2,-3,IFELSE(CLOSE<L2,1,0));
K2:=VALUEWHEN(K1<>0,K1);
G:=IFELSE(K2=1,H2,L2);
TMP:=K2;
DRAWLINE(TMP=1 AND REF(TMP,1)=1,G,TMP=1 AND REF(TMP,1)=1,REF(G,1),COLORCYAN),LINETHICK2;
DRAWLINE(TMP=-3 AND REF(TMP,1)=-3,G,TMP=-3 AND REF(TMP,1)=-3,REF(G,1),COLORYELLOW),LINETHICK2;
DRAWSL(K2=1,G,0,1,0),COLORCYAN,LINETHICK2;
DRAWSL(K2=-3,G,0,1,0),COLORYELLOW,LINETHICK2;
DRAWTEXT(CROSS(TMP,0),HX,'卖↓');
DRAWTEXT(CROSS(0,TMP),LX,'买↑');
MA55:=MA(CLOSE,55);
DRAWTEXT(CROSS(TMP,0) AND CLOSE<=MA55,HX,'卖↓');
DRAWTEXT(CROSS(0,TMP) AND CLOSE>=MA55,LX,'买↑');
您的指标我会发给我们技术人员看一下。 来源 程序化久久网
这是文华上的一个波段指标,但博易上用不了,请高手改一下,加粗的地方有问题通不过
HX:=HHV(HIGH,3);
LX:=LLV(LOW,3);
H1:=IFELSE(HX<REF(HX,1) AND HX<REF(HX,2) AND HX<REF(HX,4) AND LX<REF(LX,1) AND LX<REF(LX,3) AND LX<REF(LX,5) AND OPEN>CLOSE AND (HHV(OPEN,0)-CLOSE)>0,REF(HX,4),0);
L1:=IFELSE(LX>REF(LX,1) AND LX>REF(LX,3) AND LX>REF(LX,5) AND HX>REF(HX,1) AND HX>REF(HX,2) AND HX>REF(HX,4) AND OPEN<CLOSE AND (CLOSE-LLV(OPEN,0))>0,REF(LX,4),0);
H2:=VALUEWHEN(H1>0,H1);
L2:=VALUEWHEN(L1>0,L1);
K1:=IFELSE(CLOSE>H2,-3,IFELSE(CLOSE<L2,1,0));
K2:=VALUEWHEN(K1<>0,K1);
G:=IFELSE(K2=1,H2,L2);
TMP:=K2;
DRAWLINE(TMP=1 AND REF(TMP,1)=1,G,TMP=1 AND REF(TMP,1)=1,REF(G,1),COLORCYAN),LINETHICK2;
DRAWLINE(TMP=-3 AND REF(TMP,1)=-3,G,TMP=-3 AND REF(TMP,1)=-3,REF(G,1),COLORYELLOW),LINETHICK2;
DRAWSL(K2=1,G,0,1,0,COLORCYAN),LINETHICK2;
DRAWSL(K2=-3,G,0,1,0,COLORYELLOW),LINETHICK2;
DRAWTEXT(CROSS(TMP,0),HX,'卖↓');
DRAWTEXT(CROSS(0,TMP),LX,'买↑');
MA55:=MA(CLOSE,55);
DRAWTEXT(CROSS(TMP,0) AND CLOSE<=MA55,HX,'卖↓');
DRAWTEXT(CROSS(0,TMP) AND CLOSE>=MA55,LX,'买↑');
来源:程序化99网( WWW.CXH99.COM )
博易技术人员: HX:=HHV(HIGH,3);LX:=LLV(LOW,3);
H1:=IFELSE(HX<REF(HX,1) AND HX<REF(HX,2) AND HX<REF(HX,4) AND LX<REF(LX,1) AND LX<REF(LX,3) AND LX<REF(LX,5) AND OPEN>CLOSE AND (HHV(OPEN,0)-CLOSE)>0,REF(HX,4),0);
L1:=IFELSE(LX>REF(LX,1) AND LX>REF(LX,3) AND LX>REF(LX,5) AND HX>REF(HX,1) AND HX>REF(HX,2) AND HX>REF(HX,4) AND OPEN<CLOSE AND (CLOSE-LLV(OPEN,0))>0,REF(LX,4),0);
H2:=VALUEWHEN(H1>0,H1);
L2:=VALUEWHEN(L1>0,L1);
K1:=IFELSE(CLOSE>H2,-3,IFELSE(CLOSE<L2,1,0));
K2:=VALUEWHEN(K1<>0,K1);
G:=IFELSE(K2=1,H2,L2);
TMP:=K2;
DRAWLINE(TMP=1 AND REF(TMP,1)=1,G,TMP=1 AND REF(TMP,1)=1,REF(G,1),COLORCYAN),LINETHICK2;
DRAWLINE(TMP=-3 AND REF(TMP,1)=-3,G,TMP=-3 AND REF(TMP,1)=-3,REF(G,1),COLORYELLOW),LINETHICK2;
DRAWSL(K2=1,G,0,1,0),COLORCYAN,LINETHICK2;
DRAWSL(K2=-3,G,0,1,0),COLORYELLOW,LINETHICK2;
DRAWTEXT(CROSS(TMP,0),HX,'卖↓');
DRAWTEXT(CROSS(0,TMP),LX,'买↑');
MA55:=MA(CLOSE,55);
DRAWTEXT(CROSS(TMP,0) AND CLOSE<=MA55,HX,'卖↓');
DRAWTEXT(CROSS(0,TMP) AND CLOSE>=MA55,LX,'买↑');
您的指标我会发给我们技术人员看一下。 来源 程序化久久网
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 511411198 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容