VAR1:=(100 - ((90 * (HHV(HIGH,14) - CLOSE)) / (HHV(HIGH,14) - LLV(LOW,14))));
& ]1 s$ P5 m1 Q; ~( K$ F' d) ~VAR2:=(100 - ((90 * (HHV(HIGH,14) - CLOSE)) / (HHV(HIGH,14) - LLV(LOW,14))));" ~3 V3 L2 M; W% ?% M
VAR3:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) / (HHV(HIGH,6) - LLV(LOW,6))),34));
+ i0 v: M$ b0 j3 t. M6 A* B6 nDIR1:=ABS(CLOSE-REF(CLOSE,5));
6 O2 `' V* k$ Y3 T) JVIR1:=SUM(ABS(CLOSE-REF(CLOSE,1)),5);
; m! r. O# e# Z, z4 sER1:=DIR1/VIR1;
1 }1 w* E# p2 P% mCS1:=ER1*(0.8-2/8)+2/8;
/ Q2 z8 a8 m% q' h/ L% U" d5 mCQ1:=CS1*CS1;
7 w' m N' i* @. YAMA1:EMA(DMA(CLOSE,CQ1),2) ,COLORWHITE;
3 l/ n2 b' N' l5 P1 a% J+ e3 XDIR2:=ABS(CLOSE-REF(CLOSE,10));
" @ W% M6 X0 J) \8 P8 _VIR2:=SUM(ABS(CLOSE-REF(CLOSE,1)),10);; n7 Z3 n* A" ]* ~4 A
ER2:=DIR2/VIR2;/ ?4 V. E$ j4 C* B+ q
CS2:=ER2*(0.8-2/24)+2/24;+ z0 q' U3 _) ^& B" F' p
CQ2:=CS2*CS2;7 ?1 I4 r' c0 O6 e, m) d! j0 `) V
AMA2:EMA(DMA(CLOSE,CQ2),2),COLORGREEN,LINETHICK2;
, ?4 j$ |4 s5 W) y. h# y" [: G2 ~AMA3:IF(AMA2/REF(AMA2,1)>0.997,AMA2,DRAWNULL),COLORYELLOW,LINETHICK2;
( d2 } r' `8 UAMA4:IF(AMA2/REF(AMA2,1)>1.001,AMA2,DRAWNULL),COLORRED,LINETHICK2;# ~& ]- T, n6 t- t* s
STICKLINE((VAR2 < MA(VAR3,6)),CLOSE,OPEN,3,1),COLOR008000;9 }* z: F" N( _1 r& w3 C5 `
STICKLINE((VAR2 > MA(VAR3,6)),OPEN,CLOSE,3,1),COLORRED;7 T% w; S7 `, [, O" |
STICKLINE(((OPEN > CLOSE) AND (VAR2 > MA(VAR3,6))),(OPEN * 0.998),(CLOSE * 1.0001),2.3,0),COLOR008000;4 m# ~! o. v! e+ ^: h9 v! o" t
STICKLINE(((OPEN < CLOSE) AND (VAR2 < MA(VAR3,6))),(CLOSE * 0.998),(OPEN * 1.002),2.3,0),COLORRED;' N/ J# e L0 }# Y( d: M9 [
STICKLINE(((OPEN > CLOSE) AND (VAR2 < MA(VAR3,6))),CLOSE,OPEN,2.3,0),COLOR008000;
: p( U1 N$ ]0 y, UDRAWICON(CROSS(VAR2,MA(VAR3,6)),(LOW - (LOW*0.04)),7);
' n! N! K7 U' y# h5 A. K$ [DRAWICON(CROSS(MA(VAR3,6),VAR1),(HIGH+(HIGH*0.03)),8);/ U% t8 y, a5 D* O5 N
PT:=REF(H,1)-REF(L,1);
8 T" K8 @* R M; cCDP:=(REF(H,1)+REF(L,1)+REF(C,1)*2)/4;1 r% x# S* x8 }' Z; t" P7 R& ^' v
AH:=CDP+PT;
# r. I/ T: _8 Z" C7 p% V( E+ KAL:=CDP-PT;
& n# r2 H; n* F8 WNH:=CDP*2-REF(L,1);
. l. h7 L' W! }2 c! k2 r% Z% YNL:=CDP*2-REF(H,1);& R# K* |" o5 { @! v
强:IF(AH>REF(C,1)*1.1,REF(C,1)*1.1,AH)NODRAW;
& v6 ~0 d; c; \ P% U8 N阻:IF(NH>强,(强-CDP)*0.618+CDP,NH)NODRAW,COLORCYAN;
- D0 X" A8 ^! I5 o& jM:=IF(AL |