N1 100 8)
% E U r2 }8 u2 v1 y+ i7 o. y# g
; b R+ c3 d3 W) p0 oZGD:=HHV(H,50);4 K: i# W! @; S* ~* i0 m
ZGD2:=CONST(ZGD)*1.08;% [5 x4 h3 B; r& B- p
ZDD:=LLV(L,50); I3 m* H* i. `* O
ZDD2:=CONST(ZDD)*0.9;
6 P1 L: l: Y0 p" VDRAWBAND(ZGD2,RGB(100,100,100),ZDD2,RGB(00,00,00));
/ N$ o* \" X9 Z* W+ F: f5 xGJ:=(C+H+L+O)/4;+ i. ^* U' z* \2 x
嫡阻力:=L+(GJ-L)+(C-L);
* ^1 M) S6 E7 N; o* |- D- c嫡支持:=L+(C-GJ);2 }# ]4 I) F. ~1 d. C
本日阻力:REF(嫡阻力 , 1),NODRAW;
: { n F8 R& m: ]4 ]. w. V: p本日支持:REF(嫡支持 , 1),NODRAW;
+ h. a9 ^* n2 [7 e7 E# ^' \8 L" X* t下档线:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100);
, g/ q7 `/ Z' O$ n+ H& s" LRRRSV:=SMA(下档线,3,1);( X# u- A1 d, r, i: p2 j; z' ^; @! U
KKK:=SMA(RRRSV,3,1);
6 u2 D6 s# o: a+ ~$ d* c/ o DDDDDD:=((3 * RRRSV) - (2 * KKK));
7 b, @& K$ a$ W2 A Y! }JJ12:=(((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100);! A5 a' _( A/ A+ n0 V: o
RSV24:=SMA(JJ12,3,1);) G/ G" k# P. A/ O) q) P
K24:=SMA(RSV24,3,1);
; Q% [% _+ z# P( n6 \% \/ ZD24:=((3 * RSV24) - (2 * K24));
0 @% n* D% n; t0 ]* z! Q压力2:=IF(CROSS(D24,DDDDD),HIGH,REF(HIGH,BARSLAST(CROSS(D24,DDDDD)))),COLORFFFFFF;1 ], o0 H, q5 a1 \. \
压力位:IF(ISLASTBAR,压力2,DRAWNULL),NODRAW;
" N+ \* ~2 ] @3 v( ]# _底部:=LLV(HIGH,30),COLOR00FF00;: [6 f, f% Z$ W9 b
底部位:IF(ISLASTBAR,底部,DRAWNULL),NODRAW;# o0 z/ Y8 A" y
AA:=REF(H,N)=HHV(H,2*N+1);
- z, m/ S* y1 D, U3 Q' FQY:=BACKSET(AA,N+1);! Q) A- X% @% |6 o0 L% J7 b
CC:=FILTER(QY,N) AND H=HHV(H,N+1);
4 O3 K: V( G7 S* B }2 IDDD:BARSLAST(CC),NODRAW;6 I* ?& J/ X) h6 ?. G
GDTS:IF(CC,CURRBARSCOUNT,0),NODRAW;, D( t' N6 _6 z1 J$ Y; I
DINGBUTS:IF(DDD,REF(GDTS,DDD),GDTS),NODRAW;" K i1 y/ E' X0 |7 f
GDCS1:CONST(DINGBUTS),NODRAW;
( G3 P( }) u7 }+ p2 F) zGDCS13:=CONST(REF(HIGH,GDCS1-1));: c) N' N2 B1 r( }, Z( J- \2 q3 h
DINGBUTS1:REF(DINGBUTS,DDD+1),NODRAW;
3 r0 N9 i9 c1 ]' y9 G1 _0 F; yGDCS2:=CONST(DINGBUTS1);, q) z& e& a7 c
GDCS23:=CONST(REF(HIGH,DINGBUTS1-1));
" S1 u# n) X! r7 bXG1:=BACKSET(ISLASTBAR,GDCS1);$ q$ [# |6 P0 |( A; F
XG2:=BACKSET(ISLASTBAR,DINGBUTS1);+ N) p) {8 K! b0 b6 m) g
高点压力:=DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H,1) ,COLORBLUE,LINETHICK1;3 k. [: Z1 f, j9 e) a0 S
AA1:=REF(L,N)=LLV(L,2*N+1);
; H6 R) T# F" \3 YQY1:=BACKSET(AA1,N+1);
" U W+ p+ V6 j$ t0 ~. k# SCC1:=FILTER(QY1,N) AND L=LLV(L,N+1);) u8 l4 Q8 }8 X9 i$ V# W2 o
DD1:=BARSLAST(CC1);
/ q; O4 \+ L1 f! T, WDDTS:=IF(CC1,CURRBARSCOUNT,0);
7 N4 j8 Z. G1 }1 N4 ]( f6 NDDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);
5 {! |# w( r# s# y9 U* x- tDDCS1:=CONST(DDTS1);
. {: Y* _, q8 \7 P {DDCS13:=CONST(REF(L,DDCS1-1));3 X5 \/ Z9 ~. Y8 i5 m! ]! Q
DDTS2:=REF(DDTS1,DD1+1);4 {- G7 e5 [& t) n
DDCS2:=CONST(DDTS2);, K- z3 z" S$ A% @1 A
DDCS23:=CONST(REF(L,DDTS2-1));
& P9 Y& l8 G9 n# xXD1:=BACKSET(ISLASTBAR,DDCS1);) Z' C9 _# m- q
XD2:=BACKSET(ISLASTBAR,DDTS2);
) k) U9 H B/ c3 W7 K# E/ e低点支持:=DRAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L,1),COLORBLUE,LINETHICK1;
7 E# \( D1 c# s& l2 CDRAWBAND(高点压力,RGB(00,00,100),低点支持,RGB(00,00,00));" \. f/ m9 I& N7 R# R8 P. k
ZGSTAR:=(高点压力+低点支持)/2;
' r9 |7 r6 e/ R0 EZGEND:=CONST((高点压力+低点支持)/2);: t; ^7 [5 N' V% m% n
STARDAY:=IF(DDCS2=本日阻力,本日阻力,本日阻力,10,1),LINETHICK2,COLOR0000FF;
- |0 C n. @5 |+ u) KSTICKLINE(ISLASTBAR AND C=本日支持,本日支持,本日支持,10,1),LINETHICK2,COLORFF00FF;6 q# W1 \6 j4 S2 A; |
STICKLINE(ISLASTBAR AND C |