2024年02月13日 提问:
592 浏览
写回答 好问题 0 状态问题有人回答啦,大家来学习一下吧~
问题详情

A1:=REF(HIGH,10)=HHV(HIGH,2*10+1);

B1:=FILTER(A1,10);

C1:=BACKSET(B1,10+1);

D1:=FILTER(C1,10);

{高点}

A2:=REF(LOW,10)=LLV(LOW,2*10+1);

B2:=FILTER(A2,10);

C2:=BACKSET(B2,10+1);

D2:=FILTER(C2,10);

{低点}

E1:=(REF(LLV(LOW,2*10),1)+REF(HHV(HIGH,2*10),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,1000000),X1)+1);

G1:=F1>REF(F1,1);

I1:=BACKSET(G1,1);

LD:=I1>REF(I1,1);

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)+1);

G2:=F2>REF(F2,1);

I2:=BACKSET(G2,1);

HD:=I2>REF(I2,1);

DRAWLINE1(LD,L,HD,H,0),COLOR00FFFF,LINETHICK1;

DRAWLINE1(HD,H,LD,L,0),COLOR00FFFF,LINETHICK1;

J1:=BACKSET(ISLASTBAR ,MIN(BARSLAST(HD),BARSLAST(LD))+1);

J2:=J1>REF(J1,1);

DRAWLINE1(J2,IF(HD,H,L),ISLASTBAR ,IF(BARSLAST(HD)>BARSLAST(LD),H,L),0),COLOR00FF00;

UU:=BACKSET(ISLASTBAR,BARSLAST(LD)+1);

VV:=UU>REF(UU,1);

WW:=BACKSET(VV,REF(BARSLAST(LD),1)+2);

XX:=WW>REF(WW,1);

DRAWLINE1(XX,L,VV,L,1),COLORFFFFFF,LINETHICK2,DOT;

UU2:=BACKSET(ISLASTBAR,BARSLAST(HD)+1);

VV2:=UU2>REF(UU2,1);

WW2:=BACKSET(VV2,REF(BARSLAST(HD),1)+2);

XX2:=WW2>REF(WW2,1);

DRAWLINE1(XX2,H,VV2,H,1),COLORFFFF00,LINETHICK1,DOT;

N:=3;

AA:=REF(H,N)=HHV(H,2*N+1);

AA1:=REF(L,N)=LLV(L,2*N+1);

QY:=BACKSET(AA,N+1);

QY1:=BACKSET(AA1,N+1);

CC:=FILTER(QY,N) AND H=HHV(H,N+1);

CC1:=FILTER(QY1,N) AND L=LLV(L,N+1);

DDD:=BARSLAST(CC);

DD1:=BARSLAST(CC1);

CURRBARSCOUNT:=DATACOUNT-BARPOS+1;

GDTS:=IF(CC,CURRBARSCOUNT,0);

DDTS:=IF(CC1,CURRBARSCOUNT,0);

DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);

DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);

GDCS1:=REFX1(DINGBUTS,10000);

DDCS1:=REFX1(DDTS1,10000);

GDCS13:=REFX1(REF(HIGH,GDCS1-1),10000);

DDCS13:=REFX1(REF(L,DDCS1-1),10000);

DINGBUTS1:=REF(DINGBUTS,DDD+1);

DDTS2:=REF(DDTS1,DD1+1);

GDCS2:=REFX1(DINGBUTS1,10000);

DDCS2:=REFX1(DDTS2,10000);

GDCS23:=REFX1(REF(HIGH,DINGBUTS1-1),10000);

DDCS23:=REFX1(REF(L,DDTS2-1),10000);

XG1:=BACKSET(ISLASTBAR,GDCS1);

XD1:=BACKSET(ISLASTBAR,DDCS1);

XG2:=BACKSET(ISLASTBAR,DINGBUTS1);

XD2:=BACKSET(ISLASTBAR,DDTS2);

EXP1:=EMA(CLOSE, 12), COLORYELLOW, LINETHICK1;

EXP2:=EMA(CLOSE, 47), COLORMAGENTA, LINETHICK1;

STICKLINE1(C>EXP1 AND C>EXP2, H, L, 0, 0), COLORRED;

STICKLINE1(C>EXP1 AND C>EXP2 AND C>=O, O, C, 2.3, 1), COLORRED;

STICKLINE1(C>EXP1 AND C>EXP2 AND C<O, O, C, 2.3, 0), COLORRED;

STICKLINE1(C<EXP1 AND C>EXP2, H, L, 0, 0), COLORYELLOW;

STICKLINE1(C<EXP1 AND C>EXP2 AND C>=O, O, C, 2.3, 1), COLORYELLOW;

STICKLINE1(C<EXP1 AND C>EXP2 AND C<O, O, C, 2.3, 0),COLORYELLOW;

STICKLINE1(C>EXP1 AND C<EXP2, H, L, 0, 0),COLORFF8000;

STICKLINE1(C>EXP1 AND C<EXP2 AND C>=O, O, C, 2.3, 1), COLORFF8000;

STICKLINE1(C>EXP1 AND C<EXP2 AND C<O, O, C, 2.3, 0),COLORFF8000;

STICKLINE1(C<EXP1 AND C<EXP2, H, L, 0, 0), COLORGREEN;

STICKLINE1(C<EXP1 AND C<EXP2 AND C>=O, O, C, 2.3, 1), COLORGREEN;

STICKLINE1(C<EXP1 AND C<EXP2 AND C<O, O, C, 2.3, 0), COLORGREEN;

STICKLINE1(XG2,GDCS23,GDCS23,2,0),COLORFF8000;

STICKLINE1(XG1,GDCS13,GDCS13,2,0),COLORYELLOW;

STICKLINE1(XD2,DDCS23,DDCS23,2,0),COLORGRAY;

STICKLINE1(XD1,DDCS13,DDCS13,2,0),COLORCYAN;

最佳答案

A1:=REF(HIGH,10)=HHV(HIGH,2*10+1); B1:=FILTER(A1,10); C1:=BACKSET(B1,10+1); D1:=FILTER(C1,10); {高点} A2:=REF(LOW,10)=LLV(LOW,2*10+1); B2:=FILTER(A2,10); C2:=BACKSET(B2,10+1); D2:=FILTER(C2,10); {低点} E1:=(REF(LLV(LOW,2*10),1)+REF(HHV(HIGH,2*10),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)); X1:=REF(BARSLAST(H1),1)+1; F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,LOW,1000000),X1)+1); G1:=F1>REF(F1,1); I1:=BACKSET(G1,1); LD:=I1>REF(I1,1); 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)+1); G2:=F2>REF(F2,1); I2:=BACKSET(G2,1); HD:=I2>REF(I2,1); DRAWLINE1(LD,L,HD,H,0),COLOR00FFFF,LINETHICK1; DRAWLINE1(HD,H,LD,L,0),COLOR00FFFF,LINETHICK1; J1:=BACKSET(ISLASTBAR ,MIN(BARSLAST(HD),BARSLAST(LD))+1); J2:=J1>REF(J1,1); DRAWLINE1(J2,IF(HD,H,L),ISLASTBAR ,IF(BARSLAST(HD)>BARSLAST(LD),H,L),0),COLOR00FF00; UU:=BACKSET(ISLASTBAR,BARSLAST(LD)+1); VV:=UU>REF(UU,1); WW:=BACKSET(VV,REF(BARSLAST(LD),1)+2); XX:=WW>REF(WW,1); DRAWLINE1(XX,L,VV,L,1),COLORFFFFFF,LINETHICK2,DOT; UU2:=BACKSET(ISLASTBAR,BARSLAST(HD)+1); VV2:=UU2>REF(UU2,1); WW2:=BACKSET(VV2,REF(BARSLAST(HD),1)+2); XX2:=WW2>REF(WW2,1); DRAWLINE1(XX2,H,VV2,H,1),COLORFFFF00,LINETHICK1,DOT; N:=3; AA:=REF(H,N)=HHV(H,2*N+1); AA1:=REF(L,N)=LLV(L,2*N+1); QY:=BACKSET(AA,N+1); QY1:=BACKSET(AA1,N+1); CC:=FILTER(QY,N) AND H=HHV(H,N+1); CC1:=FILTER(QY1,N) AND L=LLV(L,N+1); DDD:=BARSLAST(CC); DD1:=BARSLAST(CC1); CURRBARSCOUNT:=DATACOUNT-BARPOS+1; GDTS:=IF(CC,CURRBARSCOUNT,0); DDTS:=IF(CC1,CURRBARSCOUNT,0); DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS); DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS); GDCS1:=REFX1(DINGBUTS,10000); DDCS1:=REFX1(DDTS1,10000); GDCS13:=REFX1(REF(HIGH,GDCS1-1),10000); DDCS13:=REFX1(REF(L,DDCS1-1),10000); DINGBUTS1:=REF(DINGBUTS,DDD+1); DDTS2:=REF(DDTS1,DD1+1); GDCS2:=REFX1(DINGBUTS1,10000); DDCS2:=REFX1(DDTS2,10000); GDCS23:=REFX1(REF(HIGH,DINGBUTS1-1),10000); DDCS23:=REFX1(REF(L,DDTS2-1),10000); XG1:=BACKSET(ISLASTBAR,GDCS1); XD1:=BACKSET(ISLASTBAR,DDCS1); XG2:=BACKSET(ISLASTBAR,DINGBUTS1); XD2:=BACKSET(ISLASTBAR,DDTS2); EXP1:=EMA(CLOSE, 12), COLORYELLOW, LINETHICK1; EXP2:=EMA(CLOSE, 47), COLORMAGENTA, LINETHICK1;

版权:言论及内容仅代表个人观点,不代表本站立场。转载请注明出处:https://www.zbgs518.com/question/1759.html

采纳

确定采纳为最佳答案吗?

发表评论
5 条回答
2024年2月14日 上午9:12 回复

有没有哪位老师能帮忙修改一下,感谢[合十]

2024年2月14日 上午9:46 回复

A1:=REF(HIGH,10)=HHV(HIGH,2*10+1);

B1:=FILTER(A1,10);

C1:=BACKSET(B1,10+1);

D1:=FILTER(C1,10);

{高点}

A2:=REF(LOW,10)=LLV(LOW,2*10+1);

B2:=FILTER(A2,10);

C2:=BACKSET(B2,10+1);

D2:=FILTER(C2,10);

{低点}

E1:=(REF(LLV(LOW,2*10),1)+REF(HHV(HIGH,2*10),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));

X1:=REF(BARSLAST(H1),1)+1;

F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,LOW,1000000),X1)+1);

G1:=F1>REF(F1,1);

I1:=BACKSET(G1,1);

LD:=I1>REF(I1,1);

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)+1);

G2:=F2>REF(F2,1);

I2:=BACKSET(G2,1);

HD:=I2>REF(I2,1);

DRAWLINE1(LD,L,HD,H,0),COLOR00FFFF,LINETHICK1;

DRAWLINE1(HD,H,LD,L,0),COLOR00FFFF,LINETHICK1;

J1:=BACKSET(ISLASTBAR ,MIN(BARSLAST(HD),BARSLAST(LD))+1);

J2:=J1>REF(J1,1);

DRAWLINE1(J2,IF(HD,H,L),ISLASTBAR ,IF(BARSLAST(HD)>BARSLAST(LD),H,L),0),COLOR00FF00;

UU:=BACKSET(ISLASTBAR,BARSLAST(LD)+1);

VV:=UU>REF(UU,1);

WW:=BACKSET(VV,REF(BARSLAST(LD),1)+2);

XX:=WW>REF(WW,1);

DRAWLINE1(XX,L,VV,L,1),COLORFFFFFF,LINETHICK2,DOT;

UU2:=BACKSET(ISLASTBAR,BARSLAST(HD)+1);

VV2:=UU2>REF(UU2,1);

WW2:=BACKSET(VV2,REF(BARSLAST(HD),1)+2);

XX2:=WW2>REF(WW2,1);

DRAWLINE1(XX2,H,VV2,H,1),COLORFFFF00,LINETHICK1,DOT;

N:=3;

AA:=REF(H,N)=HHV(H,2*N+1);

AA1:=REF(L,N)=LLV(L,2*N+1);

QY:=BACKSET(AA,N+1);

QY1:=BACKSET(AA1,N+1);

CC:=FILTER(QY,N) AND H=HHV(H,N+1);

CC1:=FILTER(QY1,N) AND L=LLV(L,N+1);

DDD:=BARSLAST(CC);

DD1:=BARSLAST(CC1);

CURRBARSCOUNT:=DATACOUNT-BARPOS+1;

GDTS:=IF(CC,CURRBARSCOUNT,0);

DDTS:=IF(CC1,CURRBARSCOUNT,0);

DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);

DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);

GDCS1:=REFX1(DINGBUTS,10000);

DDCS1:=REFX1(DDTS1,10000);

GDCS13:=REFX1(REF(HIGH,GDCS1-1),10000);

DDCS13:=REFX1(REF(L,DDCS1-1),10000);

DINGBUTS1:=REF(DINGBUTS,DDD+1);

DDTS2:=REF(DDTS1,DD1+1);

GDCS2:=REFX1(DINGBUTS1,10000);

DDCS2:=REFX1(DDTS2,10000);

GDCS23:=REFX1(REF(HIGH,DINGBUTS1-1),10000);

DDCS23:=REFX1(REF(L,DDTS2-1),10000);

XG1:=BACKSET(ISLASTBAR,GDCS1);

XD1:=BACKSET(ISLASTBAR,DDCS1);

XG2:=BACKSET(ISLASTBAR,DINGBUTS1);

XD2:=BACKSET(ISLASTBAR,DDTS2);

EXP1:=EMA(CLOSE, 12), COLORYELLOW, LINETHICK1;
EXP2:=EMA(CLOSE, 47), COLORMAGENTA, LINETHICK1;

2024年2月14日 上午10:29 回复

在文华里面语法检测不能通过

2024年2月14日 上午10:44 回复

能不能麻烦老师帮我把这个指标改成盘立方语言 我好拿去测试一下 谢谢

2024年2月14日 下午4:22 回复

复制源码再试下文华财经软件WH6版本

A1:=REF(HIGH,10)=HHV(HIGH,2*10+1);

B1:=FILTER(A1,10);

C1:=BACKSET(B1,10+1);

D1:=FILTER(C1,10);

{高点}

A2:=REF(LOW,10)=LLV(LOW,2*10+1);

B2:=FILTER(A2,10);

C2:=BACKSET(B2,10+1);

D2:=FILTER(C2,10);

{低点}

E1:=(REF(LLV(LOW,2*10),1)+REF(HHV(HIGH,2*10),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));

X1:=REF(BARSLAST(H1),1)+1;

F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,LOW,1000000),X1)+1);

G1:=F1>REF(F1,1);

I1:=BACKSET(G1,1);

LD:=I1>REF(I1,1);

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)+1);

G2:=F2>REF(F2,1);

I2:=BACKSET(G2,1);

HD:=I2>REF(I2,1);

DRAWLINE1(LD,L,HD,H,0),COLOR00FFFF,LINETHICK1;

DRAWLINE1(HD,H,LD,L,0),COLOR00FFFF,LINETHICK1;

J1:=BACKSET(ISLASTBAR ,MIN(BARSLAST(HD),BARSLAST(LD))+1);

J2:=J1>REF(J1,1);

DRAWLINE1(J2,IF(HD,H,L),ISLASTBAR ,IF(BARSLAST(HD)>BARSLAST(LD),H,L),0),COLOR00FF00;

UU:=BACKSET(ISLASTBAR,BARSLAST(LD)+1);

VV:=UU>REF(UU,1);

WW:=BACKSET(VV,REF(BARSLAST(LD),1)+2);

XX:=WW>REF(WW,1);

DRAWLINE1(XX,L,VV,L,1),COLORFFFFFF,LINETHICK2,DOT;

UU2:=BACKSET(ISLASTBAR,BARSLAST(HD)+1);

VV2:=UU2>REF(UU2,1);

WW2:=BACKSET(VV2,REF(BARSLAST(HD),1)+2);

XX2:=WW2>REF(WW2,1);

DRAWLINE1(XX2,H,VV2,H,1),COLORFFFF00,LINETHICK1,DOT;

N:=3;

AA:=REF(H,N)=HHV(H,2*N+1);

AA1:=REF(L,N)=LLV(L,2*N+1);

QY:=BACKSET(AA,N+1);

QY1:=BACKSET(AA1,N+1);

CC:=FILTER(QY,N) AND H=HHV(H,N+1);

CC1:=FILTER(QY1,N) AND L=LLV(L,N+1);

DDD:=BARSLAST(CC);

DD1:=BARSLAST(CC1);

CURRBARSCOUNT:=DATACOUNT-BARPOS+1;

GDTS:=IF(CC,CURRBARSCOUNT,0);

DDTS:=IF(CC1,CURRBARSCOUNT,0);

DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);

DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);

GDCS1:=REFX1(DINGBUTS,10000);

DDCS1:=REFX1(DDTS1,10000);

GDCS13:=REFX1(REF(HIGH,GDCS1-1),10000);

DDCS13:=REFX1(REF(L,DDCS1-1),10000);

DINGBUTS1:=REF(DINGBUTS,DDD+1);

DDTS2:=REF(DDTS1,DD1+1);

GDCS2:=REFX1(DINGBUTS1,10000);

DDCS2:=REFX1(DDTS2,10000);

GDCS23:=REFX1(REF(HIGH,DINGBUTS1-1),10000);

DDCS23:=REFX1(REF(L,DDTS2-1),10000);

XG1:=BACKSET(ISLASTBAR,GDCS1);

XD1:=BACKSET(ISLASTBAR,DDCS1);

XG2:=BACKSET(ISLASTBAR,DINGBUTS1);

XD2:=BACKSET(ISLASTBAR,DDTS2);

EXP1:=EMA(CLOSE, 12), COLORYELLOW, LINETHICK1;

EXP2:=EMA(CLOSE, 47), COLORMAGENTA, LINETHICK1;