您现在的位置:程序化交易>> 期货公式>> 博易大师>> 博易大师知识>>正文内容

请老师帮忙修改 [博易POBO]

咨询内容:

请老师帮忙修改

N: =1;
N1: =1;
N2: =1;
HH:=HHV(HIGH,1)/5+HHV(HIGH,2)/5+HHV(HIGH,2)/5+HHV(HIGH,5)/5+HHV   (HIGH,8)/5;
LL:=LLV(LOW,1)/5+LLV(LOW,2)/5+LLV(LOW,2)/5+LLV(LOW,5)/5+LLV(LOW,8)/5;
H1:= IFELSE(H<REF(H,2)&&REF(H,1)<REF(H,2),REF(H,2),0);
L1:= IFELSE(L>REF(L,2)&&REF(L,1)>REF(L,2),REF(L,2),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);
GG:=IFELSE(K2=1,H2,L2);
GG1:=VALUEWHEN(ISLASTBAR,GG);
TMP1:=K2;
W1:=K2;
W2:=OPEN-CLOSE;
HT:=IFELSE(OPEN>CLOSE,OPEN,CLOSE);
LT:=IFELSE(OPEN<CLOSE,OPEN,CLOSE);


N11:=10;
HHH:=HHV(HIGH,N11);
LLL:=LLV(LOW,N11);
HH1:=BARSLAST((HHH>REF(HHH,1)));
LL1:=BARSLAST((LLL<REF(LLL,1)));
A:=IF((HH1 < LL1),1,IF((HH1 > LL1),-1,0));
IF(A>=0,LL,HH),COLORYELLOW,NODRAW;
//STICKLINE((HH1 < LL1),CLOSE,OPEN,COLORRED,0);
//DRAWLINE((HH1 < LL1),HIGH,(HH1<LL1),LOW,COLORRED);
//STICKLINE((HH1 > LL1),CLOSE,OPEN,COLORBLUE,0);
//DRAWLINE((HH1 > LL1),HIGH,(HH1 > LL1),LOW,COLORBLUE);


DRAWTEXT(CROSS(HH1,LL1)&&CROSSDOWN(0,TMP1),HH,'空');
DRAWTEXT(CROSS(LL1,HH1)&&CROSS(0,TMP1),LL,'多');

DRAWTEXT(CROSS(LL1,HH1)&&CROSS(0,TMP1),L,'共振');
DRAWTEXT(CROSSDOWN(LL1,HH1)&&CROSSDOWN(0,TMP1),L,'共振');

DRAWCOLORKLINE(CROSSDOWN(LL1,HH1)&&CROSSDOWN(0,TMP1),COLORMAGENTA,1);
DRAWCOLORKLINE(CROSS(HH1,LL1)&&CROSSDOWN(0,TMP1),COLORYELLOW,0);

 

 来源:程序化99网( WWW.CXH99.COM )

博易技术人员: N:=1;
N1:=1;
N2:=1;
HH:=HHV(HIGH,1)/5+HHV(HIGH,2)/5+HHV(HIGH,2)/5+HHV(HIGH,5)/5+HHV   (HIGH,8)/5;
LL:=LLV(LOW,1)/5+LLV(LOW,2)/5+LLV(LOW,2)/5+LLV(LOW,5)/5+LLV(LOW,8)/5;
H1:= IFELSE(H<REF(H,2)&&REF(H,1)<REF(H,2),REF(H,2),0);
L1:= IFELSE(L>REF(L,2)&&REF(L,1)>REF(L,2),REF(L,2),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);
GG:=IFELSE(K2=1,H2,L2);
GG1:=VALUEWHEN(ISLASTBAR,GG);
TMP1:=K2;
W1:=K2;
W2:=OPEN-CLOSE;
HT:=IFELSE(OPEN>CLOSE,OPEN,CLOSE);
LT:=IFELSE(OPEN<CLOSE,OPEN,CLOSE);


N11:=10;
HHH:=HHV(HIGH,N11);
LLL:=LLV(LOW,N11);
HH1:=BARSLAST((HHH>REF(HHH,1)));
LL1:=BARSLAST((LLL<REF(LLL,1)));
A:=IF((HH1 < LL1),1,IF((HH1 > LL1),-1,0));
IF(A>=0,LL,HH),COLORYELLOW,NODRAW;
//STICKLINE((HH1 < LL1),CLOSE,OPEN,COLORRED,0);
//DRAWLINE((HH1 < LL1),HIGH,(HH1<LL1),LOW,COLORRED);
//STICKLINE((HH1 > LL1),CLOSE,OPEN,COLORBLUE,0);
//DRAWLINE((HH1 > LL1),HIGH,(HH1 > LL1),LOW,COLORBLUE);


DRAWTEXT(CROSS(HH1,LL1)&&CROSS(TMP1,0),HH,'空');
DRAWTEXT(CROSS(LL1,HH1)&&CROSS(0,TMP1),LL,'多');

DRAWTEXT(CROSS(LL1,HH1)&&CROSS(0,TMP1),L,'共振');
DRAWTEXT(CROSS(HH1,LL1)&&CROSS(TMP1,0),L,'共振');

DRAWKLINEEX(CROSS(HH1,LL1)&&CROSS(TMP1,0),H,O,L,C),COLORMAGENTA;
DRAWKLINEEX(CROSS(HH1,LL1)&&CROSS(TMP1,0),H,O,L,C),COLORYELLOW; 来源 程序化久久网

 

有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友

可联系技术人员 QQ: 262069696  点击在线交流或微信号:cxh99cxh99  进行 有偿收费 编写!

怎么收费,代编流程等详情请点击阅读!

(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)


【字体: 】【打印文章】【查看评论

相关文章

    没有相关内容