最近的顶底分型形成的条件 [文华财经]
-
咨询内容:
当最近的顶底分型形成后。在那根K线上画一水平线段,长度,6.如何表达
A1:=REF(HIGH,3)=HHV(HIGH,2*3+1);B1:=FILTER(A1,3);C1:=BACKSET(B1,3+1);D1:=FILTER(C1,3); A2:=REF(LOW,3)=LLV(LOW,2*3+1);B2:=FILTER(A2,3);C2:=BACKSET(B2,3+1);D2:=FILTER(C2,3); E1:=(REF(LLV(LOW,2*3),1)+REF(HHV(HIGH,2*3),1))/2;E2:=(HIGH+LOW)/2; H1:=(D1 AND NOT(D2 AND E1>=E2)) OR ISLASTBAR OR BARSCOUNT(CLOSE)=1;L1:=(D2 AND NOT(D1 AND E1<E2));H2:=D1 AND NOT(D2 AND E1>=E2);X1:=REF(BARSLAST(H1),1)+1;F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,LOW,100000),X1)),NODRAW;G1:=F1>REF(F1,1)||F1=1&&REF(NOT(F1>=0),1),NODRAW;I1:=BACKSET(G1,2),NODRAW;LD:=I1>REF(I1,1),NODRAW; L2:=LD OR ISLASTBAR OR BARSCOUNT(CLOSE)=1;X2:=REF(BARSLAST(L2),1)+1;F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,HIGH,0),X2)),NODRAW;G2:=F2>REF(F2,1)||F2=1&&REF(NOT(F2>=0),1),NODRAW;I2:=BACKSET(G2,2),NODRAW;HD:=I2>REF(I2,1),NODRAW; LMID:=(L+REF(H,BARSLAST(HD)))/2;HMID:=(H+REF(L,BARSLAST(LD)))/2;LDRAW:=IF(LD,1,IF(EVERY(C<LMID,BARSLAST(LD)+1),1,0));HDRAW:=IF(HD,1,IF(EVERY(C>HMID,BARSLAST(HD)+1),1,0));AAA:=BACKSET(ISLASTBAR,BARSLAST(LD)+1);BBB:=BACKSET(ISLASTBAR,BARSLAST(HD)+1); DRAWLINE1(LD,L,HD,H,0),COLORWHITE,LINETHICK1,POINTDOT;DRAWLINE1(HD,H,LD,L,0),COLORWHITE,LINETHICK1,POINTDOT; - 咨询内容:LVC:=6
- 咨询内容: DRAWSL(最后的顶一个分型形成的条件,(O+C)/2,0,LVC
-
咨询内容:,0,COLORRED),DOT;//后面那个点的日期
来源:程序化99
-
文华技术人员:
参考:
A1:=REF(HIGH,3)=HHV(HIGH,2*3+1); B1:=FILTER(A1,3); C1:=BACKSET(B1,3+1); D1:=FILTER(C1,3); A2:=REF(LOW,3)=LLV(LOW,2*3+1); B2:=FILTER(A2,3); C2:=BACKSET(B2,3+1); D2:=FILTER(C2,3); E1:=(REF(LLV(LOW,2*3),1)+REF(HHV(HIGH,2*3),1))/2; E2:=(HIGH+LOW)/2; H1:=(D1 AND NOT(D2 AND E1>=E2)) OR ISLASTBAR OR BARSCOUNT(CLOSE)=1; L1:=(D2 AND NOT(D1 AND E1<E2)); H2:=D1 AND NOT(D2 AND E1>=E2); X1:=REF(BARSLAST(H1),1)+1; F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,LOW,100000),X1)),NODRAW; G1:=F1>REF(F1,1)||F1=1&&REF(NOT(F1>=0),1),NODRAW; I1:=BACKSET(G1,2),NODRAW; LD:=I1>REF(I1,1),NODRAW; L2:=LD OR ISLASTBAR OR BARSCOUNT(CLOSE)=1; X2:=REF(BARSLAST(L2),1)+1; F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,HIGH,0),X2)),NODRAW; G2:=F2>REF(F2,1)||F2=1&&REF(NOT(F2>=0),1),NODRAW; I2:=BACKSET(G2,2),NODRAW; HD:=I2>REF(I2,1),NODRAW; LMID:=(L+REF(H,BARSLAST(HD)))/2; HMID:=(H+REF(L,BARSLAST(LD)))/2; LDRAW:=IF(LD,1,IF(EVERY(C<LMID,BARSLAST(LD)+1),1,0)); HDRAW:=IF(HD,1,IF(EVERY(C>HMID,BARSLAST(HD)+1),1,0)); AAA:=BACKSET(ISLASTBAR,BARSLAST(LD)+1); BBB:=BACKSET(ISLASTBAR,BARSLAST(HD)+1); DRAWLINE1(LD,L,HD,H,0),COLORWHITE,LINETHICK1,POINTDOT; DRAWLINE1(HD,H,LD,L,0),COLORWHITE,LINETHICK1,POINTDOT; LVC:=6; A:=BACKSET(ISLASTBAR,BARSLAST(HD)+1); DRAWSL(CROSS(A,0.5),(O+C)/2,0,LVC,0,COLORRED),DOT;//后面那个点的日期来源: WWW.CXH99.COM
-
文华客服:
以上是HD为最后的顶底,,如何是LD为最后的顶底,这样如何表达。。。如图。。把两种情况都考虑进去。。
再加上下面条件。。。
文件名:776.jpg
如果最后顶底之间的时间周期是黄竖线之间距离。。。
LVC:=6*最后顶底之间的时间周期是黄竖线之间距离;(也是两种情况,顶在先底在后,和底在先顶在后)
xiamian下面如何表达?
DRAWSL(CROSS(A,0.5),(O+C)/2,0,LVC,0,COLORRED),DOT;//后面那个点的日期 -
网友回复:
如下参考:
A1:=REF(HIGH,3)=HHV(HIGH,2*3+1);
B1:=FILTER(A1,3);
C1:=BACKSET(B1,3+1);
D1:=FILTER(C1,3);
A2:=REF(LOW,3)=LLV(LOW,2*3+1);
B2:=FILTER(A2,3);
C2:=BACKSET(B2,3+1);
D2:=FILTER(C2,3);
E1:=(REF(LLV(LOW,2*3),1)+REF(HHV(HIGH,2*3),1))/2;
E2:=(HIGH+LOW)/2;
H1:=(D1 AND NOT(D2 AND E1>=E2)) OR ISLASTBAR OR BARSCOUNT(CLOSE)=1;
L1:=(D2 AND NOT(D1 AND E1<E2));
H2:=D1 AND NOT(D2 AND E1>=E2);
X1:=REF(BARSLAST(H1),1)+1;
F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,LOW,100000),X1)),NODRAW;
G1:=F1>REF(F1,1)||F1=1&&REF(NOT(F1>=0),1),NODRAW;
I1:=BACKSET(G1,2),NODRAW;
LD:=I1>REF(I1,1),NODRAW;
L2:=LD OR ISLASTBAR OR BARSCOUNT(CLOSE)=1;
X2:=REF(BARSLAST(L2),1)+1;
F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,HIGH,0),X2)),NODRAW;
G2:=F2>REF(F2,1)||F2=1&&REF(NOT(F2>=0),1),NODRAW;
I2:=BACKSET(G2,2),NODRAW;
HD:=I2>REF(I2,1),NODRAW;
LMID:=(L+REF(H,BARSLAST(HD)))/2;
HMID:=(H+REF(L,BARSLAST(LD)))/2;
LDRAW:=IF(LD,1,IF(EVERY(C<LMID,BARSLAST(LD)+1),1,0));
HDRAW:=IF(HD,1,IF(EVERY(C>HMID,BARSLAST(HD)+1),1,0));
AAA:=BACKSET(ISLASTBAR,BARSLAST(LD)+1);
BBB:=BACKSET(ISLASTBAR,BARSLAST(HD)+1);
DRAWLINE1(LD,L,HD,H,0),COLORWHITE,LINETHICK1,POINTDOT;
DRAWLINE1(HD,H,LD,L,0),COLORWHITE,LINETHICK1,POINTDOT;
A:=BACKSET(ISLASTBAR,BARSLAST(HD)+1);
B:=BACKSET(ISLASTBAR,BARSLAST(LD)+1);
N:=BARSLAST(CROSS(A,0.5))+1;
M:=BARSLAST(CROSS(B,0.5))+1;
LVC:=6*ABS(N-M);
DRAWSL(MIN(M,N)=N&&HD,(O+C)/2,0,LVC,0,COLORRED),DOT;//后面那个点的日期
DRAWSL(MIN(M,N)=M&&LD,(O+C)/2,0,LVC,0,COLORGREEN),DOT;//后面那个点的日期
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 511411198 或微信:cxhjy888 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容