<BLOCKQUOTE>GJ:=(C+H+L+O)/4;
' S9 U% `' Z# P/ s! c1 C( Y嫡阻力:=L+(GJ-L)+(C-L);3 D m% N+ J9 d- [9 r5 l
嫡支持:=L+(C-GJ);
0 d8 _# h1 S3 p嫡阻力2:=L+2*(GJ-L)+(C-L);
4 n+ g) M8 R4 o嫡支持2:=L+(C-GJ)-(GJ-L);
6 q) \' Y! }# v& R% T本日阻力:CONST(REF(嫡阻力 , 1)),NODRAW;; k) N7 M3 \1 e7 C5 x$ B: n
本日支持:CONST(REF(嫡支持 , 1)),NODRAW;
9 \$ ~* \4 I d. S1 G$ ~: J本日阻力2:CONST(REF(嫡阻力2 , 1)),NODRAW;3 A/ r2 {+ q( u+ c" A
本日支持2:CONST(REF(嫡支持2 , 1)),NODRAW;9 w; d! a2 ?7 u- N$ K5 m( @1 p
STICKLINE(ISLASTBAR,本日阻力,本日阻力2,10,0),COLOR555555;0 e: Y+ w! H' [- t
DRAWTEXT(ISLASTBAR,本日阻力,'' 阻''),COLOR0000FF;; w0 h) G$ U& Z3 ]
STICKLINE(ISLASTBAR,本日支持,本日支持2,10,0),COLOR555555;
# q* V% l% k0 s% Q0 | GDRAWTEXT(ISLASTBAR,本日支持,'' 支''),COLOR00FF00;0 }& C7 F+ ^; L) |% P% P
{DRAWBAND(EMA(C,3),RGB(150,150,100),EMA(C,21),RGB(60,100,60));}" R3 D. `- r; z0 w6 B8 J! f
/ @/ c" q9 F+ @$ h6 X" N. Q/ |B1:=REF(CLOSE,1);. \$ a1 e+ m. k; \: @$ i
B2:=REF(CLOSE,2);
- A2 h. F, D7 L& U5 h6 \B3:=REF(CLOSE,3);
) S' p& {( s( B9 u. wB4:=REF(CLOSE,4); ' O& E% o7 V, g5 p
CMAX:=MAX(MAX(MAX(CLOSE,B1),B2),B3);6 u; S6 z( Z6 X, A$ p/ h1 U
CMIN:=MIN(MIN(MIN(CLOSE,B1),B2),B3); / i+ ?' h! S0 q+ Y4 O1 J
持股:=(CLOSE=CMAX AND (B1>=B2 OR B1>=B3)) OR ((B1=CMAX AND (B2=CMIN OR B3=CMIN)) AND CLOSE>=B2) OR
# S4 ?, ] K" A2 r" w4 x C2 V(B2=CMAX AND B3=CMIN AND CLOSE>=B1) OR (B3=CMAX AND CLOSE>=B1 AND CLOSE>=B2);
* l8 G. Z0 m) Q( SSTICKLINE(持股,B1,CLOSE,3.5,0),COLOR000099;
8 W1 _) k5 p/ j4 B变盘:=CLOSE=CMAX AND B1=CMIN;
0 @2 L/ J% G/ ?# G1 x5 l W' l' sSTICKLINE(变盘,B2,CLOSE,3.5,0),COLOR0099EF;, C' Q9 } h8 Q2 M
下跌:=(CLOSE=CMIN AND (B1REF(H,1));
/ C( U& Q; V% T- ]) m4 l# CE:=COUNT(L0 AND CROSS(VARC,VARA),90,100); ; [7 [' u" P; u' @$ {7 m
DRAWICON(卖出20 AND FILTER(VC< REF(VC,1),5),H+0.02,DRAWNULL),CIRCLEDOT,LINETHICK3,COLORGREEN; + Q$ O. T. q6 e+ m, J: J
A0:=(L+H+C*2)/4;
$ C; a3 u9 ^* YA1:EMA(A0,14)COLORBLUE,LINETHICK2;6 Z1 `& I# f& g. P
A2:=EMA(A0,25)COLORLIBLUE,LINETHICK2;. K) F3 A% R, ~+ z7 e: p
A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;
. w+ k, P: ~+ U: u0 KA2X:=(A2-REF(A2,1))/REF(A2,1)*100,NODRAW;% ^0 c9 d! _! i6 J3 J0 v# `
看多:=IF(A1X>=0 AND BARSLAST(CROSS(A1X,0))>0,REF((C+O)/2,BARSLAST(CROSS(A1X,0))),DRAWNULL),COLORMAGENTA{,LINETHICK2};
! c. o) I( G- T6 r" S8 x6 k! Q逃顶:=IF(A1X0,REF((C+O)/2,BARSLAST(CROSS(0,A1X))),DRAWNULL),COLORCYAN,{LINETHICK2};
5 E' y% q! S. J买入持股:IF(A1X>=0,A1,DRAWNULL)COLORRED,LINETHICK3;
- `+ f/ x8 _: }卖出空仓:IF(A1X |