请老师帮忙修改 [博易POBO]
咨询内容:
D:=H<REF(H,1)&&L<REF(L,1)&&H<REFX(H,1)&&L<REFX(L,1);
P1:=BACKSET(G&&H<REF(H,SUMBARS(G,2)-1)&&REF(H,SUMBARS(G,2)-1)>REF(H,SUMBARS(G,3)-1),SUMBARS(G,2));
Q1:=BACKSET(D&&L>REF(L,SUMBARS(D,2)-1)&&REF(L,SUMBARS(D,2)-1)<REF(L,SUMBARS(D,3)-1),SUMBARS(D,2));
P11:=IF(CROSS(P1,0.5),H,0);
Q11:=IF(CROSS(Q1,0.5),L,100000);
P:=BACKSET(CROSS(P1,0.5),HHVBARS(P11,SUMBARS(CROSS(P1,0.5),2))+1);
Q:=BACKSET(CROSS(Q1,0.5),LLVBARS(Q11,SUMBARS(CROSS(Q1,0.5),2))+1);
QQ:=BACKSET(CROSS(P,0.5)||ISLASTBAR&&BARSLAST(CROSS(Q,0.5))<BARSLAST(CROSS(P,0.5)),BARSLAST(CROSS(Q,0.5))+1);
PP:=BACKSET(CROSS(Q,0.5)||ISLASTBAR&&BARSLAST(CROSS(Q,0.5))>BARSLAST(CROSS(P,0.5)),BARSLAST(CROSS(P,0.5))+1);
X:=TRENDLINES(CROSS(PP,0.5),H,CROSS(QQ,0.5),L);
S:=TRENDLINES(CROSS(QQ,0.5),L,CROSS(PP,0.5),H);
DRAWLINE1(CROSS(PP,0.5),H,CROSS(QQ,0.5),L,0),LINETHICK2;
DRAWLINE1(CROSS(QQ,0.5),L,CROSS(PP,0.5),H,0),COLORCYAN,LINETHICK2;
C1:=VALUEWHEN(CROSS(COUNT(G,BARSLAST(CROSS(C,X)))=1,0.5),H);
C2:=VALUEWHEN(CROSS(COUNT(D,BARSLAST(CROSSDOWN(C,S)))=1,0.5),L);
PPP:IF(BARSLAST(CROSS(PP,0.5))<BARSLAST(CROSS(QQ,0.5)),VALUEWHEN(CROSS(PP,0.5),H),VALUEWHEN(CROSS(QQ,0.5),L));
VERTLINE(CROSS(C,C1)||CROSSDOWN(C,C2),COLORYELLOW),DOT;
D:=H<REF(H,1)&&L<REF(L,1)&&H<REFX(H,1)&&L<REFX(L,1);
P1:=BACKSET(G&&H<REF(H,SUMBARS(G,2)-1)&&REF(H,SUMBARS(G,2)-1)>REF(H,SUMBARS(G,3)-1),SUMBARS(G,2));
Q1:=BACKSET(D&&L>REF(L,SUMBARS(D,2)-1)&&REF(L,SUMBARS(D,2)-1)<REF(L,SUMBARS(D,3)-1),SUMBARS(D,2));
P11:=IF(CROSS(P1,0.5),H,0);
Q11:=IF(CROSS(Q1,0.5),L,100000);
P:=BACKSET(CROSS(P1,0.5),HHVBARS(P11,SUMBARS(CROSS(P1,0.5),2))+1);
Q:=BACKSET(CROSS(Q1,0.5),LLVBARS(Q11,SUMBARS(CROSS(Q1,0.5),2))+1);
QQ:=BACKSET(CROSS(P,0.5)||ISLASTBAR&&BARSLAST(CROSS(Q,0.5))<BARSLAST(CROSS(P,0.5)),BARSLAST(CROSS(Q,0.5))+1);
PP:=BACKSET(CROSS(Q,0.5)||ISLASTBAR&&BARSLAST(CROSS(Q,0.5))>BARSLAST(CROSS(P,0.5)),BARSLAST(CROSS(P,0.5))+1);
DRAWLINE(CROSS(PP,0.5),H,CROSS(QQ,0.5),L,0),LINETHICK2;
DRAWLINE(CROSS(QQ,0.5),L,CROSS(PP,0.5),H,0),COLORCYAN,LINETHICK2; 来源 程序化久久网
请老师帮忙修改
G:=H>REF(H,1)&&L>REF(L,1)&&H>REFX(H,1)&&L>REFX(L,1);D:=H<REF(H,1)&&L<REF(L,1)&&H<REFX(H,1)&&L<REFX(L,1);
P1:=BACKSET(G&&H<REF(H,SUMBARS(G,2)-1)&&REF(H,SUMBARS(G,2)-1)>REF(H,SUMBARS(G,3)-1),SUMBARS(G,2));
Q1:=BACKSET(D&&L>REF(L,SUMBARS(D,2)-1)&&REF(L,SUMBARS(D,2)-1)<REF(L,SUMBARS(D,3)-1),SUMBARS(D,2));
P11:=IF(CROSS(P1,0.5),H,0);
Q11:=IF(CROSS(Q1,0.5),L,100000);
P:=BACKSET(CROSS(P1,0.5),HHVBARS(P11,SUMBARS(CROSS(P1,0.5),2))+1);
Q:=BACKSET(CROSS(Q1,0.5),LLVBARS(Q11,SUMBARS(CROSS(Q1,0.5),2))+1);
QQ:=BACKSET(CROSS(P,0.5)||ISLASTBAR&&BARSLAST(CROSS(Q,0.5))<BARSLAST(CROSS(P,0.5)),BARSLAST(CROSS(Q,0.5))+1);
PP:=BACKSET(CROSS(Q,0.5)||ISLASTBAR&&BARSLAST(CROSS(Q,0.5))>BARSLAST(CROSS(P,0.5)),BARSLAST(CROSS(P,0.5))+1);
X:=TRENDLINES(CROSS(PP,0.5),H,CROSS(QQ,0.5),L);
S:=TRENDLINES(CROSS(QQ,0.5),L,CROSS(PP,0.5),H);
DRAWLINE1(CROSS(PP,0.5),H,CROSS(QQ,0.5),L,0),LINETHICK2;
DRAWLINE1(CROSS(QQ,0.5),L,CROSS(PP,0.5),H,0),COLORCYAN,LINETHICK2;
C1:=VALUEWHEN(CROSS(COUNT(G,BARSLAST(CROSS(C,X)))=1,0.5),H);
C2:=VALUEWHEN(CROSS(COUNT(D,BARSLAST(CROSSDOWN(C,S)))=1,0.5),L);
PPP:IF(BARSLAST(CROSS(PP,0.5))<BARSLAST(CROSS(QQ,0.5)),VALUEWHEN(CROSS(PP,0.5),H),VALUEWHEN(CROSS(QQ,0.5),L));
VERTLINE(CROSS(C,C1)||CROSSDOWN(C,C2),COLORYELLOW),DOT;
来源:程序化99网( WWW.CXH99.COM )
博易技术人员: G:=H>REF(H,1)&&L>REF(L,1)&&H>REFX(H,1)&&L>REFX(L,1);D:=H<REF(H,1)&&L<REF(L,1)&&H<REFX(H,1)&&L<REFX(L,1);
P1:=BACKSET(G&&H<REF(H,SUMBARS(G,2)-1)&&REF(H,SUMBARS(G,2)-1)>REF(H,SUMBARS(G,3)-1),SUMBARS(G,2));
Q1:=BACKSET(D&&L>REF(L,SUMBARS(D,2)-1)&&REF(L,SUMBARS(D,2)-1)<REF(L,SUMBARS(D,3)-1),SUMBARS(D,2));
P11:=IF(CROSS(P1,0.5),H,0);
Q11:=IF(CROSS(Q1,0.5),L,100000);
P:=BACKSET(CROSS(P1,0.5),HHVBARS(P11,SUMBARS(CROSS(P1,0.5),2))+1);
Q:=BACKSET(CROSS(Q1,0.5),LLVBARS(Q11,SUMBARS(CROSS(Q1,0.5),2))+1);
QQ:=BACKSET(CROSS(P,0.5)||ISLASTBAR&&BARSLAST(CROSS(Q,0.5))<BARSLAST(CROSS(P,0.5)),BARSLAST(CROSS(Q,0.5))+1);
PP:=BACKSET(CROSS(Q,0.5)||ISLASTBAR&&BARSLAST(CROSS(Q,0.5))>BARSLAST(CROSS(P,0.5)),BARSLAST(CROSS(P,0.5))+1);
DRAWLINE(CROSS(PP,0.5),H,CROSS(QQ,0.5),L,0),LINETHICK2;
DRAWLINE(CROSS(QQ,0.5),L,CROSS(PP,0.5),H,0),COLORCYAN,LINETHICK2; 来源 程序化久久网
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容