TA的每日心情 | 开心 2019-5-15 08:50 |
---|
签到天数: 134 天 [LV.7]签到七级
四段
- 积分
- 9950
|
DIF:= EMA(CLOSE,12)-EMA(CLOSE,26);
3 r l! s B, h; t w Q: `6 HDEA:= EMA(DIF,9);, M+ A+ E4 N( r& F+ Q6 C
MACD:= (DIF-DEA)*2;' a8 j7 R& C" p+ u4 e
% I$ O2 D& F) q/ h( R/ \
均值:= SUM(ABS(MACD), 100)/100;
0 k2 T# S+ C" T! b" x- zNOTEXT起死回生:= REF(MACD, 2) > REF(MACD, 1) AND REF(MACD, 1) < 均值*0.1 AND
7 p7 p7 _6 N1 W4 | REF(MACD, 1)>=0 AND REF(MACD, 1) < MACD;
- H, s7 s) E- Y2 Z金叉失败:= REF(MACD, 2) < REF(MACD, 1) AND REF(MACD, 1) > 0-均值*0.1 AND
6 r$ L2 J+ u8 J' k REF(MACD, 1)<=0 AND REF(MACD, 1) > MACD;
9 _" `% t, N& r ?" X+ K) F1 P2 b5 m) r0 {* X! B6 e
AA1A:= BARSLAST(CROSS(DEA, DIF))+1;% ~/ W0 I ]$ J. {# w2 i1 A+ h
AA1B:= IF(NOTEXT起死回生 OR 金叉失败, BARSLAST(NOTEXT起死回生 OR 金叉失败)+3, 99999);- {# H0 v" }; t! d
AA1:= IF(AA1B<AA1A, AA1B, AA1A);
* K% @7 T2 F' k
$ U( j9 G! |; R9 M NAA2A:= REF(BARSLAST(CROSS(DEA, DIF)), AA1)+1;
+ B$ c) H, S- `$ |7 r7 _) [AA2B:= IF(REF(NOTEXT起死回生 OR 金叉失败, AA1), REF(BARSLAST(NOTEXT起死回生 OR 金叉失败), AA1), 99999)+3;) B$ c. @7 A' Q* V" w4 W
AA2:= IF(AA2B<AA2A, AA2B, AA2A);
0 S" A" r! n' i0 R/ i, z
+ u# [7 {$ V7 F% Q8 xDIFZ~小值:= LLV(DIF, AA1+AA2);
4 c y; x3 q# E7 u4 R* YDIFZ~小日:= LLVBARS(DIF, AA1+AA2);+ N. j+ z$ |) L3 l6 U' P4 s% u' ^
DBL1:= IF(DIFZ~小日<=AA1, 0, 1);
$ u; ^; Y9 c6 d- VDBL2:= IF(DBL1=1 AND C<REF(C, DIFZ~小日) AND DIF>REF(DIF, DIFZ~小日), 1, 0);
( b# J4 d C# q }; S+ j+ DDBL:= IF(DBL1=0, 0, DBL2);4 S$ r" T0 ?% P; H, f
: k- p. z: d1 Z. |; U) sDBLJC: DBL AND (CROSS(DIF, DEA) OR NOTEXT起死回生) AND DIF>REF(DIF, 1);# s0 `$ V* @' K' s8 A4 \9 v
& |! ?+ Q0 z: f' C7 y" \+ ^/ x$ J% |0 ^5 T% O; M9 I
$ M- C* w1 R" G0 m# B- Q5 l9 M* S按下面的来,注意是选股公式,不是指标公式,还有公式名称不能太长。
/ j+ L6 @6 c9 J) u- b- a2 I8 M4 b! g* c5 c: a0 k: C9 p# w- U" Z2 r# V% `+ p! K. A: N2 s
DIF:= EMA(CLOSE,12)-EMA(CLOSE,26);
7 S/ f3 C( ^3 K9 ]. b; E6 c8 |5 I0 U5 h2 n: P2 W0 e! O7 E; I JDEA:= EMA(DIF,9);& r9 b2 {6 C7 K9 _) e$ o
2 x) K% h- Q& S0 K! qMACD:= (DIF-DEA)*2;0 k j* s7 u7 G$ m5 K4 a: g! B, ^6 a1 N! O" n ]+ L, a" |
9 c2 {$ \ ]( [+ Y! r' |
: t5 S" i! ~: F1 A+ ^9 j均值:= SUM(ABS(MACD), 100)/100;
7 ?& n( B- }9 E* C& h3 E8 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, U* A7 B) X' P0 y; h4 N
REF(MACD, 1)>=0 AND REF(MACD, 1) < MACD;
0 `. t9 S V/ ^8 X; E0 ~" ^+ 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% N: A1 o# k' K8 K
REF(MACD, 1)<=0 AND REF(MACD, 1) > MACD;5 P+ y8 L6 O: w! I& q2 Y& O, ^4 k4 ?6 u/ h& Q7 i. }3 j
- ~" G" s/ w/ o8 w( n& w; U# D
3 I% x( w7 ~0 g% ?. C; f) rAA1A:= BARSLAST(CROSS(DEA, DIF))+1;8 y/ f. e# m4 T: F* ~5 R9 k" p' ~% [) F
AA1B:= IF(起死回生 OR 金叉失败, BARSLAST(起死回生 OR 金叉失败)+3, 99999);- b! S& h/ k8 E9 s
f, @9 C/ \* _% q2 d' N4 n AA1:= IF(AA1B<AA1A, AA1B, AA1A);
- g6 F% j. r! ?5 B, M9 S2 A8 z1 D7 @" @. C. j' l
5 P+ K. e7 {, R9 Q# q ^8 ~2 l7 }AA2A:= REF(BARSLAST(CROSS(DEA, DIF)), AA1)+1;
* y b% o# ^1 P& Q- `* H- _: C7 O$ r5 V8 BAA2B:= IF(REF(起死回生 OR 金叉失败, AA1), REF(BARSLAST(起死回生 OR 金叉失败), AA1), 99999)+3;! I7 s) L1 }* S" o% w
7 x; K/ N/ f3 R& \1 Q8 @* y/ d; `- G AA2:= IF(AA2B<AA2A, AA2B, AA2A);% D8 ]+ X/ r |; _
2 z# P! X W+ l6 W$ ]* i" ^8 h% }9 x
( C# I i! z6 t% p1 ^+ rDIFZ~小值:= LLV(DIF, AA1+AA2);0 T% v. A/ ~3 ]: _# u. i7 m7 I
$ V+ m$ F4 c3 f- N+ A3 `% ~! nDIFZ~小日:= LLVBARS(DIF, AA1+AA2);0 x1 @7 B: @/ { b
8 D8 O3 c2 c8 Q7 f% ], Q GDBL1:= IF(DIFZ~小日<=AA1, 0, 1);9 K$ c% \9 |, H B9 |$ B& |
6 ?) 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, k! Q7 Z4 I: C5 V/ C
DBL:= IF(DBL1=0, 0, DBL2);
% J8 B: c r7 P9 A/ e7 Z }+ |$ ?7 Q* V3 c0 b5 g5 ?# e$ S$ V. @& H4 u) B; e y2 m b& M
DBLJC: DBL AND (CROSS(DIF, DEA) OR 起死回生) AND DIF>REF(DIF, 1);
|
|