<BLOCKQUOTE>GJ:=(C+H+L+O)/4;$ Z/ r# M L. n
嫡阻力:=L+(GJ-L)+(C-L);# S) W( x$ i% A, R( P! O: s
嫡支持:=L+(C-GJ);
' p' `- R3 \" |$ c6 r嫡阻力2:=L+2*(GJ-L)+(C-L); d' q) O( F# `) ^) E
嫡支持2:=L+(C-GJ)-(GJ-L);
# K! _+ U4 k, g& b本日阻力:CONST(REF(嫡阻力 , 1)),NODRAW;3 |9 v; ? {# y6 n, w
本日支持:CONST(REF(嫡支持 , 1)),NODRAW;4 |4 E: _, L; ~$ F& l p- n' E S
本日阻力2:CONST(REF(嫡阻力2 , 1)),NODRAW;
5 |+ e: e; Z$ O3 Z3 @本日支持2:CONST(REF(嫡支持2 , 1)),NODRAW;4 U% f3 S- P( [( H8 l5 d7 v$ @
STICKLINE(ISLASTBAR,本日阻力,本日阻力2,10,0),COLOR555555;/ J% J' `! r6 y# P9 e
DRAWTEXT(ISLASTBAR,本日阻力,'' 阻''),COLOR0000FF; a# n9 f) q) O! K5 ~
STICKLINE(ISLASTBAR,本日支持,本日支持2,10,0),COLOR555555;5 t3 m8 z+ u- E$ w( g
DRAWTEXT(ISLASTBAR,本日支持,'' 支''),COLOR00FF00;. s* ?! h% b2 D/ u
{DRAWBAND(EMA(C,3),RGB(150,150,100),EMA(C,21),RGB(60,100,60));}
2 L9 q' p# K& e+ f+ X6 o/ h4 s% T6 c
B1:=REF(CLOSE,1);
0 f J' A/ a# a7 `& f. yB2:=REF(CLOSE,2);5 Y6 G/ ]. L: \2 K
B3:=REF(CLOSE,3);* u' ~, u3 C) f; D* P8 V
B4:=REF(CLOSE,4); / c! X" x: S1 H+ r1 t, C! p. s
CMAX:=MAX(MAX(MAX(CLOSE,B1),B2),B3);
7 X1 W7 ^! _. [" p* WCMIN:=MIN(MIN(MIN(CLOSE,B1),B2),B3); $ Y" C* l# i. `- U2 F8 g
持股:=(CLOSE=CMAX AND (B1>=B2 OR B1>=B3)) OR ((B1=CMAX AND (B2=CMIN OR B3=CMIN)) AND CLOSE>=B2) OR ' E0 |- m* z3 i- z4 T* p" a4 y, ]1 L
(B2=CMAX AND B3=CMIN AND CLOSE>=B1) OR (B3=CMAX AND CLOSE>=B1 AND CLOSE>=B2);. s$ i/ s9 H8 N1 T5 Y; T
STICKLINE(持股,B1,CLOSE,3.5,0),COLOR000099; ; Q4 w* G+ }: r
变盘:=CLOSE=CMAX AND B1=CMIN;
1 \2 N2 f$ R% G' r; lSTICKLINE(变盘,B2,CLOSE,3.5,0),COLOR0099EF;
1 k! w9 r' B/ A. e! @" i下跌:=(CLOSE=CMIN AND (B1REF(H,1));- b ` U4 {/ ~% Q: y
E:=COUNT(L0 AND CROSS(VARC,VARA),90,100);
S% Q6 a h0 _1 R( o% L2 w, c0 NDRAWICON(卖出20 AND FILTER(VC< REF(VC,1),5),H+0.02,DRAWNULL),CIRCLEDOT,LINETHICK3,COLORGREEN;
9 N; s m$ _$ i+ k! mA0:=(L+H+C*2)/4;, Q5 C* ` u7 h o* ^+ G
A1:EMA(A0,14)COLORBLUE,LINETHICK2;8 N& [0 ]9 u3 I* @
A2:=EMA(A0,25)COLORLIBLUE,LINETHICK2;
- _7 l, I# |+ I. RA1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;
( Z$ h( \7 U8 z- F# g$ FA2X:=(A2-REF(A2,1))/REF(A2,1)*100,NODRAW;
2 q3 Z0 I! r+ d! W看多:=IF(A1X>=0 AND BARSLAST(CROSS(A1X,0))>0,REF((C+O)/2,BARSLAST(CROSS(A1X,0))),DRAWNULL),COLORMAGENTA{,LINETHICK2};, {% B' l w7 B+ m
逃顶:=IF(A1X0,REF((C+O)/2,BARSLAST(CROSS(0,A1X))),DRAWNULL),COLORCYAN,{LINETHICK2};
1 |0 E1 J& g0 y: _0 T买入持股:IF(A1X>=0,A1,DRAWNULL)COLORRED,LINETHICK3;2 m7 f1 z/ |! P$ j3 ]1 [0 }
卖出空仓:IF(A1X |