TT:=240/FROMOPEN;+ u& e) ~. ^8 o. G7 R, z
比:=TT;
5 ?3 ^: T) t1 g9 p/ ^& G8 TJ12:=(HIGH - ((HIGH - LOW) / 3));8 a# Q, W* N5 R/ P1 _5 ]5 ]! m! {
J23:=(LOW + ((HIGH - LOW) / 3));
7 J. w8 |3 v7 L( s* E" zAAA:=CONST(HHV(H,90));% v" m! Z0 ^8 R6 m/ k) w6 M! B
BBB:=CONST(LLV(L,100));
9 ~6 B0 w8 A; a) {1 N2 _MA1:MA(CLOSE,5);
) _$ J" p# v6 c3 j" D- UMA2:MA(CLOSE,10);
' ]' P! v+ ~7 Z$ q" GMA3:MA(CLOSE,20);
6 d( z7 i! p$ G; }! }MA4:MA(CLOSE,60);( Q* n6 }% r; Q+ F" f! c: i3 `
MA5:MA(CLOSE,120);# X& @7 j5 y1 t( ~7 q3 R
DRAWKLINE(H,O,L,C);
; ^/ S( S O- b% {T1{清早之星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) < 0.95 AND REF(OPEN,1)
: x, y& D9 d0 y' U% s: F< REF(CLOSE,2) AND ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)1.05 AND CLOSE>REF(CLOSE,2)),1,0));
) Q2 U9 G( N0 j7 X7 s8 D/ nT2{薄暮之星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) > 1.03 AND REF(OPEN,1)
& I& A# G7 ~/ t4 w; @9 O> REF(CLOSE,2) AND ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)REF(CLOSE,2)),1,0));; r2 n, A" t% ~9 }$ d, y
T6{薄暮十字星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) > 1.05 AND REF(OPEN,1)
5 _2 d! ?" h6 z/ X> REF(CLOSE,2) AND REF(OPEN,1)=REF(CLOSE,1) AND
$ E: _% K! b8 b {CLOSE/OPEN MA(CLOSE,5)),1,0));, h0 F3 v% W6 \' H: x/ U2 H
T8{倒转锤头}:=CONST(IF((MIN(OPEN,CLOSE)=LOW AND HIGH-LOW > , T1 x5 H2 p" V5 d* \ X
3*(MAX(OPEN,CLOSE)-LOW) AND CLOSE < MA(CLOSE,5)),1,0));
1 }1 y4 ^ H* @/ P* D2 i- zT9{锤头}:=CONST(IF((HIGH = MAX(OPEN,CLOSE) AND HIGH-LOW > 9 N/ }: } X R; D6 `2 I
3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE < MA(CLOSE,5)),1,0));/ \+ R% e, _/ [* w
T10{悬梁}:=CONST(IF((HIGH = MAX(OPEN,CLOSE) AND HIGH-LOW >
. C' F' \( H! }( F4 f/ n: J* Z3 a3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE>MA(CLOSE,5)),1,0));& m& D- I9 S# R: D
T11{穿头破脚}:=CONST(IF(((REF(CLOSE,1)/REF(OPEN,1)>1.03 AND CLOSE/OPENREF(OPEN,1) AND OPEN1.03 AND CLOSE/OPENREF(CLOSE,1) AND CLOSE 0.04 4 }; n+ j; n4 R" U
AND ABS(CLOSE-OPEN)/CLOSE MIN(REF(CLOSE,1),REF(OPEN,1))),1,0));
+ s- I8 @; W+ l( y8 F" iT15{十字胎}:=CONST(IF((ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1) > 0.04
, K; w6 M" _, e& c) uAND CLOSE=OPEN AND0 ]4 S+ e( A2 b* R4 }7 [
CLOSE < MAX(REF(CLOSE,1),REF(OPEN,1)) AND CLOSE > MIN(REF(CLOSE,1)! I7 {& t) l% c4 c$ ^5 U) q
,REF(OPEN,1))),1,0));( b. j) s3 u7 c1 i6 u
T16{平顶}:=CONST(IF((ABS(HIGH-REF(HIGH,1))/HIGHREF(OPEN,1) AND CLOSE>OPEN 6 A$ `! Z: q& K
AND REF(CLOSE,1)>REF(CLOSE,2) AND CLOSE>REF(CLOSE,1)),1,0));, j% {& U* w q8 s1 y* L; B
T20{双飞乌鸦}:=CONST(IF((REF(CLOSE,1)=REF(CLOSE,1) 9 f3 f" @6 @/ g: y
AND (REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)=OPEN ; t# h0 E3 P; [
AND (CLOSE-OPEN)/OPEN>=2/100 AND CLOSE>=REF(OPEN,1) AND OPEN1.03 AND REF(CLOSE,3)
* M! `; T* E' g# U: bREF(OPEN,2) AND REF(CLOSE,1)>REF(OPEN,1)
* P% [- J8 S7 c& \( m; tAND REF(LOW,4)REF(HIGH,1) AND CLOSE/OPEN |