快线:EMA(EMA(EMA(EMA(CLOSE,2),2),2),2),LINETHICK2,COLOR0000FF;, {- M; Z. o6 a" G7 u* Z
慢线:EMA(REF(快线,1),2),LINETHICK2,COLOR00FFFF;
8 D4 m' ]4 j1 ]1 D总趋势:EMA(EMA(EMA(EMA(EMA(CLOSE,55),2),2),2),2),LINETHICK2,COLORFF00FF;3 e0 {' }3 s4 p2 v0 `
, T4 W2 A/ N* pA1:=REF(H,8)=HHV(H,2*8+1);
, W& _0 X0 {8 tB1:=FILTER(A1,8); * B. \: F$ P6 C) Z4 z
C1:=BACKSET(B1,8+1); " m$ ]' T: {9 m" p! c
D1:=FILTER(C1,8);{高点}6 k3 X( U7 D! J1 z! r
R11:=BACKSET(ISLASTBAR,BARSLAST(D1)+1); S11:=R11>REF(R11,1);5 n4 {0 ^6 i3 h* L) x0 g
DRAWLINE(D1,H,S11,H,1),COLORBLUE;) j% v8 t0 M3 Y, i0 Y
A2:=REF(L,8)=LLV(L,2*8+1); 7 v% L0 Y! p; D' A7 |/ c' @$ h
B2:=FILTER(A2,8);
, c" p) @2 E" V. Q9 P. b! dC2:=BACKSET(B2,8+1);
9 h0 K; F( \3 d) d1 }D2:=FILTER(C2,8);{低点}
# p+ w# N% `* C! e, fT11:=BACKSET(ISLASTBAR,BARSLAST(D2)+1); U11:=T11>REF(T11,1);
5 N8 w9 U5 J1 T2 D8 e4 {7 u, EDRAWLINE(D2,L,U11,L,1),COLORBLUE;3 U% F" C4 B& {3 M: O, R+ ^
M:=INTPART(3*8/5);$ `, @2 R: L2 {0 ?& f6 f8 d# {) k) E
A12:=REF(H,M)=HHV(H,2*M+1); 4 `: Q. Q7 e2 _% P4 F2 S7 R
B12:=FILTER(A12,M); 7 j y) K- |" h
C12:=BACKSET(B12,M+1);
& z4 A( X0 v/ h5 |: d! t( uD12:=FILTER(C12,M);{高点}
( \& B$ [* f5 o% X/ i! H- K% RR112:=BACKSET(ISLASTBAR,BARSLAST(D12)+1); S112:=R112>REF(R112,1);# d7 y, s/ w- {# N
DRAWLINE(D12,H,S112,H,1),COLORRED;1 e$ Q% J6 V. a; i. j1 O
A22:=REF(L,M)=LLV(L,2*M+1);
- a. n" p% d& N9 c( y2 O rB22:=FILTER(A22,M);
" L8 ^2 ~) r) {3 K3 u% z7 K0 AC22:=BACKSET(B22,M+1); ; E' |. ?. e; b' o) l
D22:=FILTER(C22,M);{低点}
+ s& `: i* P6 i* [/ jT112:=BACKSET(ISLASTBAR,BARSLAST(D22)+1); U112:=T112>REF(T112,1);
p# M7 u% R6 \! J3 t/ ?+ b) W1 BDRAWLINE(D22,L,U112,L,1),COLORRED;
5 O; c' w% v- y; c+ A( nVAR1111:=BACKSET(REF(HIGH,2)=HHV(HIGH,5),3);7 t3 `, D0 y6 r; q
VAR2222:=CROSS(VAR1111,0.9);
2 G; V$ J3 i* AVAR3333:=BACKSET(REF(LOW,2)=LLV(LOW,5),3);% {* K& {2 Q" G. v" r" X( N
VAR4444:=CROSS(VAR3333,0.9);
8 s( s, j, S& H' w! X' |% r压力:= REF(HIGH,BARSLAST(VAR2222));! T. B, |& { |3 B( e' C
STICKLINE(CLOSE,REF(HIGH,BARSLAST(VAR2222)),REF(HIGH,BARSLAST(VAR2222)),0.5,1),COLOREA91B5,LINETHICK3;
( L% L: D/ v2 K& h支持:= REF(LOW,BARSLAST(VAR4444));! M9 o! ^' |% v; d3 L
STICKLINE(CLOSE,REF(LOW,BARSLAST(VAR4444)),REF(LOW,BARSLAST(VAR4444)),0.5,1),COLOR00B4FF,LINETHICK3;' [( ^4 C# v8 n6 B2 ? B, d2 l
下档线:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100);5 z. ^, W3 k( f4 @7 k
RRRSV:=SMA(下档线,3,1);
9 i+ j* ^1 ?' r/ g8 E/ v) SKKK:=SMA(RRRSV,3,1);1 B7 Y5 R% K- e6 g7 L
DDD:=((3 * RRRSV) - (2 * KKK));& t8 d' }( g! W/ ?' t' J+ m2 r2 B4 C
JJ12:=(((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100);4 Z9 w# p0 ~) V8 M0 ?
RSV24:=SMA(JJ12,3,1);! }: e2 i7 F. P. j+ F
K24:=SMA(RSV24,3,1);3 ]9 h+ U$ C2 X/ f$ M- D. R* F
D24:=((3 * RSV24) - (2 * K24));
* T2 c- q0 s7 S9 Y5 M压力2:=IF(CROSS(D24,DDD),HIGH,REF(HIGH,BARSLAST(CROSS(D24,DDD)))),COLORFFFFFF;2 Y% J' ?, F5 W( w2 Y
底部:=LLV(HIGH,30),COLOR00FF00; |