VAR1:=(100 - ((90 * (HHV(HIGH,14) - CLOSE)) / (HHV(HIGH,14) - LLV(LOW,14))));5 Y& Z) ^, ?0 V8 ~& d& B- G: e# j7 L
VAR2:=(100 - ((90 * (HHV(HIGH,14) - CLOSE)) / (HHV(HIGH,14) - LLV(LOW,14))));2 f7 f. \8 C$ c
VAR3:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) / (HHV(HIGH,6) - LLV(LOW,6))),34));/ n2 d( M6 K( U Y* ]. u2 b) {
DIR1:=ABS(CLOSE-REF(CLOSE,5));
2 T" I" A9 l1 D1 oVIR1:=SUM(ABS(CLOSE-REF(CLOSE,1)),5);
! ], X0 o! Z$ s6 UER1:=DIR1/VIR1;
w) l( }( s6 F3 c9 `' ^CS1:=ER1*(0.8-2/8)+2/8;; K/ C9 X& B7 U! ?2 O" F$ ]1 A
CQ1:=CS1*CS1;
6 @5 c; R' ~$ zAMA1:EMA(DMA(CLOSE,CQ1),2) ,COLORWHITE;
# n- A n( k( ?: cDIR2:=ABS(CLOSE-REF(CLOSE,10));5 o6 @, O: Q1 S( @
VIR2:=SUM(ABS(CLOSE-REF(CLOSE,1)),10);6 f, j4 W1 E3 C/ @8 G
ER2:=DIR2/VIR2;
" A1 {) q* w8 W3 ^# TCS2:=ER2*(0.8-2/24)+2/24;- c. u7 Z( A$ @, k5 R* D
CQ2:=CS2*CS2; B1 d4 H7 i5 f, o6 r
AMA2:EMA(DMA(CLOSE,CQ2),2),COLORGREEN,LINETHICK2;
u" v; n& w0 {3 vAMA3:IF(AMA2/REF(AMA2,1)>0.997,AMA2,DRAWNULL),COLORYELLOW,LINETHICK2;
+ I. u! q* o6 Z1 [AMA4:IF(AMA2/REF(AMA2,1)>1.001,AMA2,DRAWNULL),COLORRED,LINETHICK2;2 X# z4 p/ u7 V% e; Z
STICKLINE((VAR2 < MA(VAR3,6)),CLOSE,OPEN,3,1),COLOR008000;
: {, M& b7 R3 ?# Z3 L9 SSTICKLINE((VAR2 > MA(VAR3,6)),OPEN,CLOSE,3,1),COLORRED;
- ?, Y( d: |$ q SSTICKLINE(((OPEN > CLOSE) AND (VAR2 > MA(VAR3,6))),(OPEN * 0.998),(CLOSE * 1.0001),2.3,0),COLOR008000;
( p, G% }6 D3 j- t1 I- H$ }: MSTICKLINE(((OPEN < CLOSE) AND (VAR2 < MA(VAR3,6))),(CLOSE * 0.998),(OPEN * 1.002),2.3,0),COLORRED;
1 W$ V+ ~/ q% L1 |" JSTICKLINE(((OPEN > CLOSE) AND (VAR2 < MA(VAR3,6))),CLOSE,OPEN,2.3,0),COLOR008000;2 B/ m: ?, f e- C+ m
DRAWICON(CROSS(VAR2,MA(VAR3,6)),(LOW - (LOW*0.04)),7);% r# P+ [$ y" z. C
DRAWICON(CROSS(MA(VAR3,6),VAR1),(HIGH+(HIGH*0.03)),8);) d1 p2 t: \: r, i6 e! s
PT:=REF(H,1)-REF(L,1);
2 e, T' ]8 E6 k( e7 C4 o. r) XCDP:=(REF(H,1)+REF(L,1)+REF(C,1)*2)/4;8 p; A+ J% W5 D( c( m! S+ P3 s
AH:=CDP+PT;1 S; [3 D: K5 P: t* I- b
AL:=CDP-PT;
4 H5 M- @/ ]" x; ]# `% u& P6 `4 O6 J1 o/ _NH:=CDP*2-REF(L,1);
; }% k0 f( E, Y3 z0 f, iNL:=CDP*2-REF(H,1);! U# u& B" C6 C( ~
强:IF(AH>REF(C,1)*1.1,REF(C,1)*1.1,AH)NODRAW;
, U' [+ l' ~+ I, B) J阻:IF(NH>强,(强-CDP)*0.618+CDP,NH)NODRAW,COLORCYAN;0 u3 Z; T2 e2 R% o
M:=IF(AL |