TT:=240/FROMOPEN;
! F8 v4 Q. _2 F+ P& c* p比:=TT;
: W& }/ p+ R% a5 {8 l' cJ12:=(HIGH - ((HIGH - LOW) / 3));
' r. S+ _7 F+ fJ23:=(LOW + ((HIGH - LOW) / 3));7 V0 e/ m1 R. w
AAA:=CONST(HHV(H,90));
# e% R6 B. U' v2 e$ r; wBBB:=CONST(LLV(L,100));3 M2 K( Q; `$ b- L9 z2 \
MA1:MA(CLOSE,5);
& u) @: ^2 g* ^ d7 v @MA2:MA(CLOSE,10);& b8 K% O/ }: P4 U) q' P1 K
MA3:MA(CLOSE,20);$ R. S- t5 ?+ {8 i8 u5 J
MA4:MA(CLOSE,60);$ E0 U, Z( k" X& o& t$ c Y
MA5:MA(CLOSE,120);
; N, g/ e+ N' e! C5 o4 _ oDRAWKLINE(H,O,L,C);
5 o( p5 J/ ~8 r1 jT1{清早之星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) < 0.95 AND REF(OPEN,1)
$ Q, {7 b7 i" Z& [8 t< REF(CLOSE,2) AND ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)1.05 AND CLOSE>REF(CLOSE,2)),1,0));
2 t8 u% `4 `' J3 v8 ET2{薄暮之星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) > 1.03 AND REF(OPEN,1) * c3 S; U" P) h
> REF(CLOSE,2) AND ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)REF(CLOSE,2)),1,0));! q- l- I8 L" _" D- v
T6{薄暮十字星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) > 1.05 AND REF(OPEN,1)
9 q0 S; m- [' `- D8 ~. D> REF(CLOSE,2) AND REF(OPEN,1)=REF(CLOSE,1) AND" U# V; q1 E5 j2 m, B" x
CLOSE/OPEN MA(CLOSE,5)),1,0));9 V0 G: d N) b6 q6 U& f K9 L
T8{倒转锤头}:=CONST(IF((MIN(OPEN,CLOSE)=LOW AND HIGH-LOW > 3 f% d- l5 u+ G& U) u) L; ]
3*(MAX(OPEN,CLOSE)-LOW) AND CLOSE < MA(CLOSE,5)),1,0));4 I( l: P& U) o& b# b& a6 P$ a
T9{锤头}:=CONST(IF((HIGH = MAX(OPEN,CLOSE) AND HIGH-LOW > * _) U: W8 U+ O; D# Q' [! T
3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE < MA(CLOSE,5)),1,0));& T7 x# L9 n" f6 e1 Y
T10{悬梁}:=CONST(IF((HIGH = MAX(OPEN,CLOSE) AND HIGH-LOW >
% Z6 W! [" R9 Q7 j. V( F3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE>MA(CLOSE,5)),1,0));
. q5 W$ g1 ^% n3 C$ ^1 XT11{穿头破脚}:=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
1 |3 ]* H# @& @: G/ |# j" dAND ABS(CLOSE-OPEN)/CLOSE MIN(REF(CLOSE,1),REF(OPEN,1))),1,0));
- t* p" t @. b" O& c1 z0 I1 t! vT15{十字胎}:=CONST(IF((ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1) > 0.04 / _, x& e7 t) _4 M A8 ?
AND CLOSE=OPEN AND" H, L+ Z2 Q1 w: f0 r, n
CLOSE < MAX(REF(CLOSE,1),REF(OPEN,1)) AND CLOSE > MIN(REF(CLOSE,1)9 |, X4 s8 f* a: v+ Y: U
,REF(OPEN,1))),1,0));
# j; z' c8 W1 z7 Z7 [) i8 |T16{平顶}:=CONST(IF((ABS(HIGH-REF(HIGH,1))/HIGHREF(OPEN,1) AND CLOSE>OPEN 0 F8 _( _/ g& Q; v- x" K1 l0 v
AND REF(CLOSE,1)>REF(CLOSE,2) AND CLOSE>REF(CLOSE,1)),1,0));
2 ^/ ~$ N: u FT20{双飞乌鸦}:=CONST(IF((REF(CLOSE,1)=REF(CLOSE,1)
, i6 O; A; q( O8 D) S% ^AND (REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)=OPEN
( {. u" i, r5 ` Q, W; ^0 \AND (CLOSE-OPEN)/OPEN>=2/100 AND CLOSE>=REF(OPEN,1) AND OPEN1.03 AND REF(CLOSE,3)
7 X! s9 G' W; G- hREF(OPEN,2) AND REF(CLOSE,1)>REF(OPEN,1)
2 q. g) S! j) |7 Y" T- l. MAND REF(LOW,4)REF(HIGH,1) AND CLOSE/OPEN |