TA的每日心情 | 开心 2019-5-15 08:50 |
---|
签到天数: 134 天 [LV.7]签到七级
四段
- 积分
- 9950
|
DIF:= EMA(CLOSE,12)-EMA(CLOSE,26);
6 \- R. |8 n* O5 e5 N$ A$ H5 nDEA:= EMA(DIF,9);: F k3 T( P6 F
MACD:= (DIF-DEA)*2;
2 n* L; X# F, i9 e
" ?# D+ w+ K6 G% ?均值:= SUM(ABS(MACD), 100)/100;
4 F) K9 @9 m4 E) ONOTEXT起死回生:= REF(MACD, 2) > REF(MACD, 1) AND REF(MACD, 1) < 均值*0.1 AND * h' J) [3 t3 {) j
REF(MACD, 1)>=0 AND REF(MACD, 1) < MACD;
* n4 |+ z B' e) k8 r# x! Y i5 }金叉失败:= REF(MACD, 2) < REF(MACD, 1) AND REF(MACD, 1) > 0-均值*0.1 AND * K8 r K0 D/ m$ a, M+ R
REF(MACD, 1)<=0 AND REF(MACD, 1) > MACD;
7 P+ c$ @% S' P8 `6 N4 P
1 w- g# x6 y' N! a$ W# Z$ zAA1A:= BARSLAST(CROSS(DEA, DIF))+1;
+ ~$ ~: V* n+ o3 K, R- l# b! p# uAA1B:= IF(NOTEXT起死回生 OR 金叉失败, BARSLAST(NOTEXT起死回生 OR 金叉失败)+3, 99999);
7 l, T3 U% O7 dAA1:= IF(AA1B<AA1A, AA1B, AA1A);
$ Z; \; {1 T1 `' u7 C2 C h5 V
. a* z5 }9 H; `* ]AA2A:= REF(BARSLAST(CROSS(DEA, DIF)), AA1)+1;* r4 y3 G8 M! Q/ r
AA2B:= IF(REF(NOTEXT起死回生 OR 金叉失败, AA1), REF(BARSLAST(NOTEXT起死回生 OR 金叉失败), AA1), 99999)+3;
J- T; J. S8 i7 L8 H# L+ PAA2:= IF(AA2B<AA2A, AA2B, AA2A);
9 n/ S G( J5 t
7 U: p% M0 f8 d% GDIFZ~小值:= LLV(DIF, AA1+AA2);
6 R3 ~% U) @, d6 B. x9 eDIFZ~小日:= LLVBARS(DIF, AA1+AA2);) [& P6 O+ v/ k3 _: j u* b7 `
DBL1:= IF(DIFZ~小日<=AA1, 0, 1);+ |4 L& |) O1 e
DBL2:= IF(DBL1=1 AND C<REF(C, DIFZ~小日) AND DIF>REF(DIF, DIFZ~小日), 1, 0);: E I- [4 R3 U6 x. P
DBL:= IF(DBL1=0, 0, DBL2);5 j+ Q) ~1 x* j* l* ~* I
. }& l3 j( S; P m4 S# \5 k. K% FDBLJC: DBL AND (CROSS(DIF, DEA) OR NOTEXT起死回生) AND DIF>REF(DIF, 1);
# D- [/ c; T+ y! S5 |" ~
y# u1 w2 ~% x; K& p( o; p- r
9 v( m0 w* L% C' `, E
8 D* R4 c3 v5 w按下面的来,注意是选股公式,不是指标公式,还有公式名称不能太长。6 I6 q: y) \" T. W# |
- a2 I8 M4 b! g* c5 c: a0 k: C9 p# w- U" Z2 r# V% `1 S( O- g3 P+ p, m) M
DIF:= EMA(CLOSE,12)-EMA(CLOSE,26);
" g. [5 [ u9 ~& O( a; E6 c8 |5 I0 U5 h2 n: P2 W0 e! O7 E; I JDEA:= EMA(DIF,9);
$ A; s0 l& Y3 a$ P* K2 B; m- x2 x) K% h- Q& S0 K! qMACD:= (DIF-DEA)*2;0 k j* s7 u7 G$ m5 K4 a: g! B+ ?8 S% z0 I: w0 `, a4 v& ^+ K
0 ~/ l& U& V7 `' L% e: t5 S" i! ~: F1 A+ ^9 j均值:= SUM(ABS(MACD), 100)/100;; m- i- \' N7 |" w/ [5 ?) T
8 E2 t, R. S" M1 H' M3 C$ S _# z起死回生:= REF(MACD, 2) > REF(MACD, 1) AND REF(MACD, 1) < 均值*0.1 AND 7 @" T2 H, j$ Z! w! S3 P1 V7 D% C0 f+ v& c0 f" T
REF(MACD, 1)>=0 AND REF(MACD, 1) < MACD;
8 ~& t. A1 u; ^ n" ^+ E; z% P( f$ m9 A# D; Y金叉失败:= REF(MACD, 2) < REF(MACD, 1) AND REF(MACD, 1) > 0-均值*0.1 AND * r! R! C! b9 Y$ q# r. K+ f! j2 a1 r( {/ Z! Y/ P( y8 p
REF(MACD, 1)<=0 AND REF(MACD, 1) > MACD;5 P+ y8 L6 O: w! I& q
( K$ D1 M6 E$ C5 h/ `7 q5 f
, t7 u5 X+ i9 z% H b3 I% x( w7 ~0 g% ?. C; f) rAA1A:= BARSLAST(CROSS(DEA, DIF))+1;8 y/ f. e# m4 T: F* ~5 R/ s$ l) a- d' }- i+ [4 Q
AA1B:= IF(起死回生 OR 金叉失败, BARSLAST(起死回生 OR 金叉失败)+3, 99999);- b! S& h/ k8 E9 s
- G5 k3 j) w" Z6 m H0 ~ AA1:= IF(AA1B<AA1A, AA1B, AA1A);
* H0 w8 U6 o% G- G7 C: u9 S2 A8 z1 D7 @" @. C. j' l
$ G7 X* ^' L) B/ K) r# q ^8 ~2 l7 }AA2A:= REF(BARSLAST(CROSS(DEA, DIF)), AA1)+1;
9 d7 x( S# u& z* w7 t- `* H- _: C7 O$ r5 V8 BAA2B:= IF(REF(起死回生 OR 金叉失败, AA1), REF(BARSLAST(起死回生 OR 金叉失败), AA1), 99999)+3;! I7 s) L1 }* S" o% w% j! d. z$ w% \* `) u
AA2:= IF(AA2B<AA2A, AA2B, AA2A);
8 D% I% F* l3 H( T9 X2 V' N2 z# P! X W+ l6 W$ ]
. Y$ ~' H' Z. p. \2 @9 O( C# I i! z6 t% p1 ^+ rDIFZ~小值:= LLV(DIF, AA1+AA2);# w1 w1 N! X7 t: i' P! e L
$ V+ m$ F4 c3 f- N+ A3 `% ~! nDIFZ~小日:= LLVBARS(DIF, AA1+AA2);
8 o7 e6 C* Y9 l8 q# y0 ^ w8 D8 O3 c2 c8 Q7 f% ], Q GDBL1:= IF(DIFZ~小日<=AA1, 0, 1);
: a! f% N8 b- d: B6 ?) D& A: m, `: d6 x6 cDBL2:= IF(DBL1=1 AND C<REF(C, DIFZ~小日) AND DIF>REF(DIF, DIFZ~小日), 1, 0);3 g* Q# }$ r: x: Y& O+ X% Y' ?" V2 N
DBL:= IF(DBL1=0, 0, DBL2);5 z9 p. z$ p8 O8 @
$ ?7 Q* V3 c0 b5 g5 ?# e$ S$ V. @& H4 u
9 N) [* P% h$ T: i! _ DBLJC: DBL AND (CROSS(DIF, DEA) OR 起死回生) AND DIF>REF(DIF, 1);
|
|