VAR1:=(100 - ((90 * (HHV(HIGH,14) - CLOSE)) / (HHV(HIGH,14) - LLV(LOW,14))));4 A7 u- }6 X" i* d! i
VAR2:=(100 - ((90 * (HHV(HIGH,14) - CLOSE)) / (HHV(HIGH,14) - LLV(LOW,14))));. i# }: a) x* m: q& A6 k$ A
VAR3:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) / (HHV(HIGH,6) - LLV(LOW,6))),34));2 F' f1 n* B- f( t$ o, {
DIR1:=ABS(CLOSE-REF(CLOSE,5)); |: U9 r4 y5 C; z7 `
VIR1:=SUM(ABS(CLOSE-REF(CLOSE,1)),5);& H* R3 D* l- Q1 R# u& D( ^
ER1:=DIR1/VIR1;
~8 S0 `/ W: T2 u' p, F7 I3 QCS1:=ER1*(0.8-2/8)+2/8;
: X/ x; I7 P* A2 _" V+ R( WCQ1:=CS1*CS1;
) ?1 N+ b' R2 TAMA1:EMA(DMA(CLOSE,CQ1),2) ,COLORWHITE;6 \4 p) D" f) f% x! z
DIR2:=ABS(CLOSE-REF(CLOSE,10));; \, J4 I! v3 H9 F) B6 t5 ?' S. G. ?
VIR2:=SUM(ABS(CLOSE-REF(CLOSE,1)),10);. O/ G% n9 g+ K7 V8 Y
ER2:=DIR2/VIR2;
0 p; H6 t+ u: u9 c6 kCS2:=ER2*(0.8-2/24)+2/24;6 l- `2 p' i% A; Q/ ~0 r) q9 i, e
CQ2:=CS2*CS2;
' ~- `8 w* B2 XAMA2:EMA(DMA(CLOSE,CQ2),2),COLORGREEN,LINETHICK2;. y1 h' U3 d: \! W/ r
AMA3:IF(AMA2/REF(AMA2,1)>0.997,AMA2,DRAWNULL),COLORYELLOW,LINETHICK2;" m/ l/ M/ [5 M% i. p& O; R
AMA4:IF(AMA2/REF(AMA2,1)>1.001,AMA2,DRAWNULL),COLORRED,LINETHICK2;+ u6 B. n; F/ `8 ^& Q( O
STICKLINE((VAR2 < MA(VAR3,6)),CLOSE,OPEN,3,1),COLOR008000;4 Q* V$ T7 _4 c4 i' u
STICKLINE((VAR2 > MA(VAR3,6)),OPEN,CLOSE,3,1),COLORRED;0 C- ~ i4 A% V% V' d: P0 x: q
STICKLINE(((OPEN > CLOSE) AND (VAR2 > MA(VAR3,6))),(OPEN * 0.998),(CLOSE * 1.0001),2.3,0),COLOR008000;
( |6 m" ?: r1 a! l0 e( fSTICKLINE(((OPEN < CLOSE) AND (VAR2 < MA(VAR3,6))),(CLOSE * 0.998),(OPEN * 1.002),2.3,0),COLORRED;
2 W8 z. C1 x* G- F$ jSTICKLINE(((OPEN > CLOSE) AND (VAR2 < MA(VAR3,6))),CLOSE,OPEN,2.3,0),COLOR008000;
3 E4 v8 z7 X6 d FDRAWICON(CROSS(VAR2,MA(VAR3,6)),(LOW - (LOW*0.04)),7); [- E- w3 e; w; R9 F" m
DRAWICON(CROSS(MA(VAR3,6),VAR1),(HIGH+(HIGH*0.03)),8);2 N+ p$ f. |2 U8 g$ A7 g
PT:=REF(H,1)-REF(L,1);2 F! i1 `. Y a% V
CDP:=(REF(H,1)+REF(L,1)+REF(C,1)*2)/4;9 F. ~# A8 G3 q! `
AH:=CDP+PT;
! i& K4 T/ G- A# |# B# Y" A- s$ WAL:=CDP-PT;
2 K; F" y, }7 R) S- C, S) xNH:=CDP*2-REF(L,1);
/ @" Z$ u& Z5 A, M! U' i0 Q: YNL:=CDP*2-REF(H,1);
1 T- Q/ @0 z! m- D% A7 L p强:IF(AH>REF(C,1)*1.1,REF(C,1)*1.1,AH)NODRAW;; W. @$ m6 \6 a" X$ j
阻:IF(NH>强,(强-CDP)*0.618+CDP,NH)NODRAW,COLORCYAN;& }; `+ l( P; M
M:=IF(AL |