程度面:MA(CLOSE,89),COLORFFA2FF;6 n- o' H; z) n/ L
BBIMA(CLOSE,M1)+MA(CLOSE,M2)+MA(CLOSE,M3)+MA(CLOSE,M4))/4;4 p' c% Z; g' b2 Y( G
IF(BBI>REF(BBI,1),BBI,DRAWNULL),COLORRED,LINETHICK2;
. D) z2 _% H# RIF(BBI=1,O,C,2,0),COLORYELLOW;
! P7 M7 } ]4 {! [2 u/ Y% pMA13:=MA(CLOSE,13);/ X3 y5 P) w0 _# D4 b
X1:=(C+L+H)/3;" G7 O h. x7 |, [8 N1 X% P; y
BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;
c" h" S1 y9 B5 Q5 m5 h0 rEMA8:=EMA(C,8);: U/ G% s" I* Z: ^) u! A
A1:=MIN(O,C);* k3 ^/ D0 \ m! f) a* `- e
B1:=ABS(O-C); f3 B% `$ N: }- S4 }' ]" D& [
T1:=FILTER(BB13>1 AND EMA(X1,13)>REF(EMA(X1,8),1),10);
2 T+ M7 e* X9 j2 c B& Z/ _$ f2 ]STICKLINE(T1,A1,A1+B1/4,2,0),COLOR007575;4 M4 {. n* j& V- t
STICKLINE(T1,A1+B1/4,A1+B1/2,2,0),COLORFF0000;: L# R4 U- S; r0 l7 e
STICKLINE(T1,A1+B1/2,A1+B1*3/4,2,0),COLOR007575;* m% [ N$ {( }! T9 X
STICKLINE(T1,A1+B1*3/4,A1+B1,2,0),COLORFF0000;. }8 [! ~2 _$ z+ V/ q" e( `% s
LC:=REF(CLOSE,1);( X5 }& s O9 {. x( w
RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);
9 d3 r# \( P8 `9 f: e+ h0 Q* p1 [! NFF:=EMA(CLOSE,3);; ?, s3 H4 s$ u* j% V% m7 x% O
MA15:=EMA(CLOSE,21);7 n0 V# ]" m7 q" `# A
{DRAWTEXT(CROSS(FF,MA15),(LOW * 0.97),'底背离'),COLORA6E500;
- s) J* r' d+ J8 ODRAWTEXT(CROSS(88,RSI),(HIGH * 1.04),'顶背离'),COLOR1880FF;}/ T9 D" o4 d9 c: P) m- u$ |7 m' k
STICKLINE(CROSS(FF,MA15),A1,A1+B1/2,2,0),COLOR7F017F;2 S0 s5 w5 b! s3 c
STICKLINE(CROSS(88,RSI),A1+B1,A1+B1/2,2,0),COLORGREEN;1 |! [4 q$ W7 r; y6 R# n; A
T2:=COUNT(CROSS(BBI,3),3)=1 AND CROSS(C,BBI);
- Z# y2 v8 D3 a0 S* K$ PDRAWTEXT(T2,H*1.05,'反转'),COLORWHITE;
4 R0 J% U: O( i( lSTICKLINE(T2,O,C,2,0),COLORRED; , S% M. }/ L: G! {% r
T12:=V2>=1;
/ M' j# F- V6 m9 ET0:=BARSLAST(T12);
e( b3 i( ^# H; {+ AL1:=REF(L,T0);: ? h* c' T2 V A- {" r2 f
H1:=REF(H,T0);
% W5 J9 i8 q; k8 x2 rSTICKLINE(REF(T12,1) OR REF(T12,2) OR REF(T12,3),H1,H1,4,-1),COLORWHITE;
! k* P F4 \ f! t h- j0 NSTICKLINE(REF(T12,1) OR REF(T12,2) OR REF(T12,3),L1,L1,4,-1),COLORWHITE;
) e( a# B Z1 I) t( z! x{T11:=REF(T12,3) AND COUNT(LH1,4)>1;* r( R' w1 e* p8 C5 L& @ h$ g
DRAWTEXT(T11,H*1.05,'三天'),COLORWHITE;/ s) \& ?7 Y& n0 F
STICKLINE(T11,O,C,2,0),COLORFF00FF;}
+ N0 u) K, d/ z% j( Z8 Z, U: l: J6 {{(REF(V2>=1,3) OR REF(V2>=1,2) OR REF(V2>=1,1)) };4 H- s: C* S2 L; c& X- U
L11:=MIN(REF(L,1),L);
; _) [: I" F/ d0 x$ @L10:=MIN(L11,REF(L,2));
- P ^! y; A" h9 I5 e" R w6 CL21:=MAX(REF(L,1),L);
* I5 S4 Q. Q& l+ p* VL20:=MAX(L21,REF(L,2));
5 V& ~8 j8 _9 J5 F& p7 b( I& zT111:=(REF(V2>=1,3) OR REF(V2>=1,2) OR REF(V2>=1,1)) AND % M6 F$ _7 s; r$ R- m$ S4 D
((L10>L1 AND L20>H1) OR (L11>L1 AND L21>H1));
: D- |6 x; e2 r5 H2 FT11:=T111 AND REF(T111,1)=0;
a B- n6 L2 @. \8 _( iSTICKLINE(T11,O,C,2,0),COLORFF00FF;
6 @6 _! z3 f& l高:=REF(HHV(H,N),M);
! I) T: [: _' C0 X! q低:=REF(LLV(L,N),M);
/ Y: \* \+ h7 [+ O. pH19:=高-(高-低)*0.191; 4 P; ?6 s) Y3 _- h
H38:=高-(高-低)*0.382;
# |* }* ^9 `. D. p/ VH中:=高-(高-低)*0.5; / q1 d5 `) g) e# M
H61:=高-(高-低)*0.618; 6 O7 |% y4 ^4 q) F: t, o
H80:=高-(高-低)*0.809;
+ k; f2 g1 _/ n$ x& ?! H4 j0 k极点:REFDATE(高,DATE),POINTDOT,LINETHICK2,COLORWHITE;% D# a) C6 N! G' n8 h! H
%19.8:REFDATE(H19,DATE),POINTDOT,LINETHICK2,COLORYELLOW;- m- g( O, V* A# L$ j% v9 ~
%38.2:REFDATE(H38,DATE),POINTDOT,LINETHICK2,COLORGREEN;' v) O% u M- L0 `4 S9 [. ?8 R# s& T' F
%50:REFDATE(H中,DATE),POINTDOT,LINETHICK2,COLORRED;
/ k7 X) {$ B$ R4 L9 Y" Z9 ^%61.8:REFDATE(H61,DATE),POINTDOT,LINETHICK2,COLORMAGENTA;
) u) Z# A" p: m% N4 F%80.9:REFDATE(H80,DATE),POINTDOT,LINETHICK2,COLORBLUE;
: t! D1 P1 i: f& g( H) P低点:REFDATE(低,DATE),POINTDOT,LINETHICK2,COLORWHITE;6 L5 I) k- V" ?" W. i
DRAWTEXT(ISLASTBAR,极点,'极点'),COLORWHITE;' ]: O$ o* u6 f2 S7 h" \& L& l
DRAWTEXT(ISLASTBAR,低点,'低点'),COLORWHITE;
+ n( s& t+ A4 n, t4 U/ MSTICKLINE(T1,A1,A1+B1/2,2,0),COLOR007575;9 @; S' T1 r1 G8 [
STICKLINE(T1,A1+B1/2,A1+B1,2,0),COLORBLUE;$ Q6 D. _- G: }6 }5 J; {7 e
STICKLINE(T11 AND T12,A1,A1+B1/2,2,0),COLORFF00FF;8 I& f! B7 A# a1 `
STICKLINE(T11 AND T12,A1+B1/2,A1+B1,2,0),COLORYELLOW;% i! k3 r1 g9 s/ k( h# R& y7 J
STICKLINE(T1 AND T12,A1+B1/3,A1+B1,2,0),COLORYELLOW;; e# s7 \* J. I2 {0 _
STICKLINE(T1 AND T12,A1,A1+B1/3,2,0),COLOR007575;( e1 _/ f4 K7 _9 u7 o% K6 C
STICKLINE(T1 AND T12,A1+B1/3,A1+B1*2/3,2,0),COLORBLUE;
/ p; b4 z* Y; M6 XSTICKLINE(T2 AND T12,A1+B1/2,A1+B1,2,0),COLORRED; |0 e- p. a+ _) ?! l) t4 D. A
STICKLINE(T2 AND T12,A1,A1+B1/2,2,0),COLORYELLOW; |