TA的每日心情 | 开心 2019-5-15 08:50 |
---|
签到天数: 134 天 [LV.7]签到七级
四段
- 积分
- 9950
|
DIF:= EMA(CLOSE,12)-EMA(CLOSE,26);; d0 }- A. Z/ C- `9 T( ]3 d/ t4 O
DEA:= EMA(DIF,9);6 y7 q2 G3 t6 a$ n7 D
MACD:= (DIF-DEA)*2;
( U; c' y% P( V$ w; i/ P ~ t& Z' n; j1 f5 U1 B! g! l! d0 ^ M
均值:= SUM(ABS(MACD), 100)/100;8 g0 \. {- L9 p" i0 e- v
NOTEXT起死回生:= REF(MACD, 2) > REF(MACD, 1) AND REF(MACD, 1) < 均值*0.1 AND
7 B$ C) c% _- w+ O! O* p REF(MACD, 1)>=0 AND REF(MACD, 1) < MACD;* O" t) q( d* X0 ]) d8 y! d
金叉失败:= REF(MACD, 2) < REF(MACD, 1) AND REF(MACD, 1) > 0-均值*0.1 AND
; m+ z+ {; x3 a' w REF(MACD, 1)<=0 AND REF(MACD, 1) > MACD;
# Q: y V. K( D, J7 q" a" R: _' q$ r4 `" X
AA1A:= BARSLAST(CROSS(DEA, DIF))+1;
2 V b5 s7 Z1 n4 O' b! n. {' d9 vAA1B:= IF(NOTEXT起死回生 OR 金叉失败, BARSLAST(NOTEXT起死回生 OR 金叉失败)+3, 99999);6 q8 E d3 U: W9 ?8 i" h& n" g3 Y; J, b
AA1:= IF(AA1B<AA1A, AA1B, AA1A);! k( \- R$ T3 o( }
- k( {# t; N0 F+ f/ E D0 F" ?2 c
AA2A:= REF(BARSLAST(CROSS(DEA, DIF)), AA1)+1;
c6 n8 y |$ |1 b: mAA2B:= IF(REF(NOTEXT起死回生 OR 金叉失败, AA1), REF(BARSLAST(NOTEXT起死回生 OR 金叉失败), AA1), 99999)+3;
5 D" Z1 R8 t' ^( M7 M. W1 Q1 _AA2:= IF(AA2B<AA2A, AA2B, AA2A);
( v a+ c+ R! ] w% c- w# W1 c' X: Q! w8 @" d& E% k5 I
DIFZ~小值:= LLV(DIF, AA1+AA2);7 o& ?( q4 |2 N1 J4 m( R
DIFZ~小日:= LLVBARS(DIF, AA1+AA2);
Q$ r' V7 J* u+ Y, j& F% i! kDBL1:= IF(DIFZ~小日<=AA1, 0, 1);3 N) b4 b% p; X( C
DBL2:= IF(DBL1=1 AND C<REF(C, DIFZ~小日) AND DIF>REF(DIF, DIFZ~小日), 1, 0);
( e7 |; _. \% r. \/ E7 RDBL:= IF(DBL1=0, 0, DBL2);
$ k0 t! E+ v& c& O8 ]
# a. D% U9 H/ x/ EDBLJC: DBL AND (CROSS(DIF, DEA) OR NOTEXT起死回生) AND DIF>REF(DIF, 1);
. ]& z( n" S- k$ Q2 d" s% I S/ D. V, @2 C1 l# v
% E' y+ _8 g' p( Y- o8 a7 l, F
, [. O3 k# R8 K, I按下面的来,注意是选股公式,不是指标公式,还有公式名称不能太长。" [3 [7 O$ g& j/ D8 z9 d9 D
- a2 I8 M4 b! g* c5 c: a0 k: C9 p# w- U" Z2 r# V% `# _0 N8 _) t% P& y6 D/ Y- n. R8 u% x |
DIF:= EMA(CLOSE,12)-EMA(CLOSE,26);
, [+ f9 P( z" q7 A# I; E6 c8 |5 I0 U5 h2 n: P2 W0 e! O7 E; I JDEA:= EMA(DIF,9);
0 h" N7 h- P& A& H! h; _2 x) K% h- Q& S0 K! qMACD:= (DIF-DEA)*2;0 k j* s7 u7 G$ m5 K4 a: g! B
7 ^% Z+ G! \( P, }% L: p5 w+ k
4 K( Y5 |0 u3 q% N, p& ?/ W: t5 S" i! ~: F1 A+ ^9 j均值:= SUM(ABS(MACD), 100)/100;
) p' u5 u4 x" T7 }( V6 _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! w2 R) X) b% D) G) [
REF(MACD, 1)>=0 AND REF(MACD, 1) < MACD;! C* g# {0 ]& l
" ^+ 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
& u+ b! f! |: b REF(MACD, 1)<=0 AND REF(MACD, 1) > MACD;5 P+ y8 L6 O: w! I& q
; d) j6 k& y$ Q4 m; ]# M1 v! ?" m( f
6 x# D" S8 `2 v D U9 x$ ?" T3 I% x( w7 ~0 g% ?. C; f) rAA1A:= BARSLAST(CROSS(DEA, DIF))+1;8 y/ f. e# m4 T: F* ~5 R
, y: N+ n Y) {" i# v& k& ~, E+ p AA1B:= IF(起死回生 OR 金叉失败, BARSLAST(起死回生 OR 金叉失败)+3, 99999);- b! S& h/ k8 E9 s6 Y3 C9 y3 G0 P7 @$ w$ s H$ B
AA1:= IF(AA1B<AA1A, AA1B, AA1A);
# y2 g( |5 c; n9 |, x! g, f9 S2 A8 z1 D7 @" @. C. j' l
4 d8 B# f9 |1 @4 T( b# q ^8 ~2 l7 }AA2A:= REF(BARSLAST(CROSS(DEA, DIF)), AA1)+1;+ n1 a8 J' t1 L9 @& m# a
- `* H- _: C7 O$ r5 V8 BAA2B:= IF(REF(起死回生 OR 金叉失败, AA1), REF(BARSLAST(起死回生 OR 金叉失败), AA1), 99999)+3;! I7 s) L1 }* S" o% w
2 @, R+ _% ]8 N8 j a AA2:= IF(AA2B<AA2A, AA2B, AA2A);
) k- ]! E3 q3 P2 z# P! X W+ l6 W$ ]
- V7 R/ t" [, P& s$ u( C# I i! z6 t% p1 ^+ rDIFZ~小值:= LLV(DIF, AA1+AA2);
; q! h: q. U( @$ V+ m$ F4 c3 f- N+ A3 `% ~! nDIFZ~小日:= LLVBARS(DIF, AA1+AA2);6 L0 A% }1 u6 C( c
8 D8 O3 c2 c8 Q7 f% ], Q GDBL1:= IF(DIFZ~小日<=AA1, 0, 1);" \. G1 c. b' ]9 {
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
9 E/ l! n' i" M+ N DBL:= IF(DBL1=0, 0, DBL2);2 L7 b3 a1 R# G- }
$ ?7 Q* V3 c0 b5 g5 ?# e$ S$ V. @& H4 u
; k# H9 I2 ^! f. d2 z: m DBLJC: DBL AND (CROSS(DIF, DEA) OR 起死回生) AND DIF>REF(DIF, 1);
|
|