[求助]让字靠K线近点,多谢老师

2天前发布

VAR1:=ZIGZAG(C,2.88,1) < REF(ZIGZAG(C,2.88,1),1) AND REF(ZIGZAG(C,2.88,1),1) > REF(ZIGZAG(C,2.88,1),...

 VAR1:=ZIGZAG(C,2.88,1) < REF(ZIGZAG(C,2.88,1),1) AND REF(ZIGZAG(C,2.88,1),1) > REF(ZIGZAG(C,2.88,1),2);
 VAR2:=ZIGZAG(C,2.88,1) > REF(ZIGZAG(C,2.88,1),1) AND REF(ZIGZAG(C,2.88,1),1) < REF(ZIGZAG(C,2.88,1),2);
 STICKLINE(VAR1,C,O,8,0),COLOR00FF00;
 STICKLINE(VAR1,C,O,5,0),COLOR00FF00;
 STICKLINE(VAR1,H,L,2,0),COLOR00FF00;
 DRAWTEXT(VAR1,H*1.007,'  空'),COLOR80FFFF;
 STICKLINE(VAR2,C,O,7,0),COLOR0000FF;
 STICKLINE(VAR2,C,O,5,0),COLOR0000FF;
 STICKLINE(VAR2,H,L,2,0),COLOR0000FF;
 DRAWTEXT(VAR2,L*0.993,'  多'),COLOR43D0FA;
 VAR3:=ZIGZAG(C,4.88,1) < REF(ZIGZAG(C,4.88,1),1) AND REF(ZIGZAG(C,4.88,1),1) > REF(ZIGZAG(C,4.88,1),2);
 VAR4:=ZIGZAG(C,4.88,1) > REF(ZIGZAG(C,4.88,1),1) AND REF(ZIGZAG(C,4.88,1),1) < REF(ZIGZAG(C,4.88,1),2);
 STICKLINE(VAR3,C,O,8,0),COLOR00FF00;
 STICKLINE(VAR3,C,O,5,0),COLOR00FF00;
 STICKLINE(VAR3,H,L,2,0),COLOR00FF00;
 DRAWTEXT(VAR3,H*1.007,'强空'),COLOR43D0FA;
 STICKLINE(VAR4,C,O,7,0),COLOR0000FF;
 STICKLINE(VAR4,C,O,5,0),COLOR0000FF;
 STICKLINE(VAR4,H,L,2,0),COLOR0000FF;
 DRAWTEXT(VAR4,L*0.993,'强多'),COLOR43D0FA;
 VAR5:=ZIGZAG(C,5.88,1) < REF(ZIGZAG(C,5.88,1),1) AND REF(ZIGZAG(C,5.88,1),1) > REF(ZIGZAG(C,5.88,1),2);
 VAR6:=ZIGZAG(C,5.88,1) > REF(ZIGZAG(C,5.88,1),1) AND REF(ZIGZAG(C,5.88,1),1) < REF(ZIGZAG(C,5.88,1),2);
 STICKLINE(VAR5,C,O,9,0),COLOR00FFFF;
 STICKLINE(VAR5,C,O,6,0),COLOR00FF00;
 STICKLINE(VAR5,H,L,3,0),COLOR00FF00;
 DRAWTEXT(VAR5,H*1.007,'■强空■'),COLOR00FF00;
 STICKLINE(VAR6,C,O,8,0),COLOR00FFFF;
 STICKLINE(VAR6,C,O,6,0),COLOR0000FF;
 STICKLINE(VAR6,H,L,3,0),COLOR0000FF;
 DRAWTEXT(VAR6,L*0.993,'■强多■'),COLOR00FFFF;
 VAR7:=ZIGZAG(C,6.88,1) < REF(ZIGZAG(C,6.88,1),1) AND REF(ZIGZAG(C,6.88,1),1) > REF(ZIGZAG(C,6.88,1),2);
 VAR8:=ZIGZAG(C,6.88,1) > REF(ZIGZAG(C,6.88,1),1) AND REF(ZIGZAG(C,6.88,1),1) < REF(ZIGZAG(C,6.88,1),2);
 STICKLINE(VAR7,C,O,9,0),COLOR00FFFF;
 STICKLINE(VAR7,C,O,6,0),COLOR00FF00;
 STICKLINE(VAR7,H,L,2,0),COLOR00FF00;
 DRAWTEXT(VAR7,H*1.007,'■强空■'),COLOR00FF00;
 DRAWTEXT(VAR8,L*0.993,'■强多■'),COLOR00FFFF;
 VAR9:=ZIGZAG(C,8.88,1) < REF(ZIGZAG(C,8.88,1),1) AND REF(ZIGZAG(C,8.88,1),1) > REF(ZIGZAG(C,8.88,1),2);
 VAR10:=ZIGZAG(C,8.88,1) > REF(ZIGZAG(C,8.88,1),1) AND REF(ZIGZAG(C,8.88,1),1) < REF(ZIGZAG(C,8.88,1),2);
 DRAWTEXT(VAR9,H*1.007,'■强空■'),COLOR00FF00;
 DRAWTEXT(VAR10,L*0.993,'■强多■'),COLOR00FFFF;
 VAR13:=ZIGZAG(C,15.88,1) < REF(ZIGZAG(C,15.88,1),1) AND REF(ZIGZAG(C,15.88,1),1) > REF(ZIGZAG(C,15.88,1),2);
 VAR14:=ZIGZAG(C,15.88,1) > REF(ZIGZAG(C,15.88,1),1) AND REF(ZIGZAG(C,15.88,1),1) < REF(ZIGZAG(C,15.88,1),2);
 DRAWTEXT(VAR13,H*1.02,'★波段高位注意转空★'),COLOR00FF00;
 DRAWTEXT(VAR14,L*0.975,'★下跌低位注意转多★'),COLOR00FFFF;
 VAR15:=ZIGZAG(C,0.23,1) < REF(ZIGZAG(C,0.23,1),1) AND REF(ZIGZAG(C,0.23,1),1) > REF(ZIGZAG(C,0.23,1),2);
 VAR16:=ZIGZAG(C,0.23,1) > REF(ZIGZAG(C,0.23,1),1) AND REF(ZIGZAG(C,0.23,1),1) < REF(ZIGZAG(C,0.23,1),2);
M:=35;
N:=5;
A1:=REF(MAX(O,C),N)=HHV(MAX(O,C),2*N+1);
B1:=FILTER(A1,N);
C1:=BACKSET(B1,N+1);
D1:=FILTER(C1,N);
//{高点}
A2:=REF(MIN(O,C),N)=LLV(MIN(O,C),2*N+1);
B2:=FILTER(A2,N);
C2:=BACKSET(B2,N+1);
D2:=FILTER(C2,N);
//{低点}
E1:=(REF(LLV(MIN(O,C),2*N),1)+REF(HHV(MAX(O,C),2*N),1))/2;
E2:=(MAX(O,C)+MIN(O,C))/2;
H1:=(D1 AND NOT((D2 AND E1>=E2))) OR ISLASTBAR OR BARSCOUNT(CLOSE)=1;

L1:=(D2 AND NOT((D1 AND E1
H2:=D1 AND NOT((D2 AND E1>=E2));
X1:=REF(BARSLAST(H1),1)+1;
F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(MIN(O,C),X1)+1);
//LLVBARS(IF(L1,MIN(O,C),N000),X1)+1,NODRAW;
//DRAWTEXT(X1,L,'X1');
//DRAWTEXT(F1,H,'F1');
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(H,X2)+1);
//把标记的数字去掉 谢谢

付费偷看设置
发送
1条回答
天涯爱文华
1楼 · 2天前.采纳回答
 精彩回答 1  元偷偷看…… 0人看过