麻烦老师修改 [博易POBO]
咨询内容:
N参数=4A1:=REF(HIGH,N)=HHV(HIGH,2*N+1) AND REF(HIGH,N)>HHV(HIGH,N);
B1:=FILTER(A1,N);
C1:=BACKSET(B1,N+1);
D1:=FILTER(C1,N);
A2:=REF(LOW,N)=LLV(LOW,2*N+1) AND REF(L,N)<LLV(L,N);
B2:=FILTER(A2,N);
C2:=BACKSET(B2,N+1);
D2:=FILTER(C2,N);
E1:=(REF(LLV(LOW,2*N),1)+REF(HHV(HIGH,2*N),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,999999),X1));
G1:=F1>REF(F1,1)||F1=1&&REF(NOT(F1>=0),1);
I1:=BACKSET(G1,2);
LD:=I1>REF(I1,1),CIRCLEDOT;//高点
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));
G2:=F2>REF(F2,1)||F2=1&&REF(NOT(F2>=0),1);
I2:=BACKSET(G2,2);
HD:=I2>REF(I2,1),CIRCLEDOT;//低点
FP:= INTPART(MAX(FRACPART(H)*1000, FRACPART(L)*1000));
DIGIT:= (MOD(FP,10)>0) + (MOD(FP,100)>0) + (MOD(FP, 1000)>0);
/* 以上为该指标使用的判断高低的逻辑 */
DRAWLINE1(LD,L,HD,H,0),COLORWHITE,LINETHICK1;
DRAWLINE1(HD,H,LD,L,0),COLORWHITE,LINETHICK1;
DRAWNUMBER1(HD,HIGH,HIGH,DIGIT),COLORRED,ALIGN1,VALIGN2;
DRAWNUMBER1(LD,LOW,LOW,DIGIT),RGB(0,120,0),ALIGN1,VALIGN0;
A1:=REF(HIGH,N)=HHV(HIGH,2*N+1) AND REF(HIGH,N)>HHV(HIGH,N);
B1:=FILTER(A1,N);
C1:=BACKSET(B1,N+1);
D1:=FILTER(C1,N);
A2:=REF(LOW,N)=LLV(LOW,2*N+1) AND REF(L,N)<LLV(L,N);
B2:=FILTER(A2,N);
C2:=BACKSET(B2,N+1);
D2:=FILTER(C2,N);
E1:=(REF(LLV(LOW,2*N),1)+REF(HHV(HIGH,2*N),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,999999),X1));
G1:=F1>REF(F1,1)||F1=1&&REF(NOT(F1>=0),1);
I1:=BACKSET(G1,2);
LD:=I1>REF(I1,1),CIRCLEDOT;//高点
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));
G2:=F2>REF(F2,1)||F2=1&&REF(NOT(F2>=0),1);
I2:=BACKSET(G2,2);
HD:=I2>REF(I2,1),CIRCLEDOT;//低点
FP:= INTPART(MAX(FRACPART(H)*1000, FRACPART(L)*1000));
DIGIT:= (MOD(FP,10)>0) + (MOD(FP,100)>0) + (MOD(FP, 1000)>0);
DRAWLINE(LD,L,HD,H,0),COLORWHITE,LINETHICK1;
DRAWLINE(HD,H,LD,L,0),COLORWHITE,LINETHICK1;
DRAWNUMBER(HD,HIGH,HIGH,DIGIT),COLORRED,ALIGN1,VALIGN2;
DRAWNUMBER(LD,LOW,LOW,DIGIT),COLOR007800,ALIGN1,VALIGN0; 老师好为什么在铁矿石上小数点位数不显示了可否让它显示数来 来源 程序化久久网
麻烦老师修改
麻烦老师修改到博易大师N参数=4A1:=REF(HIGH,N)=HHV(HIGH,2*N+1) AND REF(HIGH,N)>HHV(HIGH,N);
B1:=FILTER(A1,N);
C1:=BACKSET(B1,N+1);
D1:=FILTER(C1,N);
A2:=REF(LOW,N)=LLV(LOW,2*N+1) AND REF(L,N)<LLV(L,N);
B2:=FILTER(A2,N);
C2:=BACKSET(B2,N+1);
D2:=FILTER(C2,N);
E1:=(REF(LLV(LOW,2*N),1)+REF(HHV(HIGH,2*N),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,999999),X1));
G1:=F1>REF(F1,1)||F1=1&&REF(NOT(F1>=0),1);
I1:=BACKSET(G1,2);
LD:=I1>REF(I1,1),CIRCLEDOT;//高点
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));
G2:=F2>REF(F2,1)||F2=1&&REF(NOT(F2>=0),1);
I2:=BACKSET(G2,2);
HD:=I2>REF(I2,1),CIRCLEDOT;//低点
FP:= INTPART(MAX(FRACPART(H)*1000, FRACPART(L)*1000));
DIGIT:= (MOD(FP,10)>0) + (MOD(FP,100)>0) + (MOD(FP, 1000)>0);
/* 以上为该指标使用的判断高低的逻辑 */
DRAWLINE1(LD,L,HD,H,0),COLORWHITE,LINETHICK1;
DRAWLINE1(HD,H,LD,L,0),COLORWHITE,LINETHICK1;
DRAWNUMBER1(HD,HIGH,HIGH,DIGIT),COLORRED,ALIGN1,VALIGN2;
DRAWNUMBER1(LD,LOW,LOW,DIGIT),RGB(0,120,0),ALIGN1,VALIGN0;
来源:程序化99网( WWW.CXH99.COM )
博易技术人员: N:=4;A1:=REF(HIGH,N)=HHV(HIGH,2*N+1) AND REF(HIGH,N)>HHV(HIGH,N);
B1:=FILTER(A1,N);
C1:=BACKSET(B1,N+1);
D1:=FILTER(C1,N);
A2:=REF(LOW,N)=LLV(LOW,2*N+1) AND REF(L,N)<LLV(L,N);
B2:=FILTER(A2,N);
C2:=BACKSET(B2,N+1);
D2:=FILTER(C2,N);
E1:=(REF(LLV(LOW,2*N),1)+REF(HHV(HIGH,2*N),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,999999),X1));
G1:=F1>REF(F1,1)||F1=1&&REF(NOT(F1>=0),1);
I1:=BACKSET(G1,2);
LD:=I1>REF(I1,1),CIRCLEDOT;//高点
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));
G2:=F2>REF(F2,1)||F2=1&&REF(NOT(F2>=0),1);
I2:=BACKSET(G2,2);
HD:=I2>REF(I2,1),CIRCLEDOT;//低点
FP:= INTPART(MAX(FRACPART(H)*1000, FRACPART(L)*1000));
DIGIT:= (MOD(FP,10)>0) + (MOD(FP,100)>0) + (MOD(FP, 1000)>0);
DRAWLINE(LD,L,HD,H,0),COLORWHITE,LINETHICK1;
DRAWLINE(HD,H,LD,L,0),COLORWHITE,LINETHICK1;
DRAWNUMBER(HD,HIGH,HIGH,DIGIT),COLORRED,ALIGN1,VALIGN2;
DRAWNUMBER(LD,LOW,LOW,DIGIT),COLOR007800,ALIGN1,VALIGN0; 老师好为什么在铁矿石上小数点位数不显示了可否让它显示数来 来源 程序化久久网
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容