TA的每日心情 | 开心 2019-5-15 08:50 |
---|
签到天数: 134 天 [LV.7]签到七级
四段

- 积分
- 9950
|
DIF:= EMA(CLOSE,12)-EMA(CLOSE,26);
0 `( a. ~* h0 |. w- W0 U. H# J1 v4 iDEA:= EMA(DIF,9);: ]% M6 x* q1 m# w- w! v
MACD:= (DIF-DEA)*2;
; d1 T* ] i) C' @
# g# J! m" ]6 K均值:= SUM(ABS(MACD), 100)/100;. Q4 }6 Z4 F: T/ w- N
NOTEXT起死回生:= REF(MACD, 2) > REF(MACD, 1) AND REF(MACD, 1) < 均值*0.1 AND ! G6 m3 K% _) x I/ J2 ^, h) u) Z; N7 p
REF(MACD, 1)>=0 AND REF(MACD, 1) < MACD;& x3 a# b3 T$ M2 [
金叉失败:= REF(MACD, 2) < REF(MACD, 1) AND REF(MACD, 1) > 0-均值*0.1 AND
; v3 Y+ h7 j, D- V5 W REF(MACD, 1)<=0 AND REF(MACD, 1) > MACD;
8 t- F* C( I+ m* j3 K9 b0 |. h2 K
1 n& X! A0 b5 VAA1A:= BARSLAST(CROSS(DEA, DIF))+1;
+ M$ |; X, r; l+ W7 IAA1B:= IF(NOTEXT起死回生 OR 金叉失败, BARSLAST(NOTEXT起死回生 OR 金叉失败)+3, 99999);
* W. V. S/ _( CAA1:= IF(AA1B<AA1A, AA1B, AA1A);; @& V L; x8 E2 l1 g0 L. [
! J& `: x1 i$ S1 C( e6 ~; uAA2A:= REF(BARSLAST(CROSS(DEA, DIF)), AA1)+1;- F5 A/ M9 J5 o9 |6 @
AA2B:= IF(REF(NOTEXT起死回生 OR 金叉失败, AA1), REF(BARSLAST(NOTEXT起死回生 OR 金叉失败), AA1), 99999)+3;
t% Q$ V& c- b4 C4 a$ C" VAA2:= IF(AA2B<AA2A, AA2B, AA2A);
4 f; T5 a+ O0 U4 o9 j# j7 p* O/ i( q; l( L
DIFZ~小值:= LLV(DIF, AA1+AA2);
, ]: X3 Z3 t1 {# JDIFZ~小日:= LLVBARS(DIF, AA1+AA2);+ y: l9 y9 n' a) }, ~1 \/ r9 o, O
DBL1:= IF(DIFZ~小日<=AA1, 0, 1);* l0 X& V: u3 n8 f6 f. m+ ~
DBL2:= IF(DBL1=1 AND C<REF(C, DIFZ~小日) AND DIF>REF(DIF, DIFZ~小日), 1, 0);
, H+ e% y. q" W( l7 Q* y. e+ Z1 GDBL:= IF(DBL1=0, 0, DBL2);
/ |! d- G8 |, C: b% R/ E3 a- l) B( n0 n( M$ o
DBLJC: DBL AND (CROSS(DIF, DEA) OR NOTEXT起死回生) AND DIF>REF(DIF, 1);; s* k$ H. B3 S
* p( Y: P) e N2 k5 C$ j* V
. f; O: G. Y0 L6 n/ t- F7 f) g) C: C' q+ b, h1 ?, t) p* [
按下面的来,注意是选股公式,不是指标公式,还有公式名称不能太长。
5 ?( U2 c: R: ^- a2 I8 M4 b! g* c5 c: a0 k: C9 p# w- U" Z2 r# V% `
: W# i2 t! c$ R0 G' L DIF:= EMA(CLOSE,12)-EMA(CLOSE,26); \* p: j) [% h9 m; Z4 F
; E6 c8 |5 I0 U5 h2 n: P2 W0 e! O7 E; I JDEA:= EMA(DIF,9);
! ~; j$ k" i* h9 P2 x) K% h- Q& S0 K! qMACD:= (DIF-DEA)*2;0 k j* s7 u7 G$ m5 K4 a: g! B/ p' r) f; w. K* q, M5 j
( ~* b1 F% F2 Q. M9 v
: t5 S" i! ~: F1 A+ ^9 j均值:= SUM(ABS(MACD), 100)/100;7 G8 `$ F' u% l* d' K# V" O
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
) @) S+ d) |" o. m/ W; ^% c REF(MACD, 1)>=0 AND REF(MACD, 1) < MACD;
+ m& h/ ^4 B0 i$ Z9 |2 t# k" ^+ 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
3 n$ k; A$ p1 P2 S) K REF(MACD, 1)<=0 AND REF(MACD, 1) > MACD;5 P+ y8 L6 O: w! I& q) B& x$ n E4 K8 v: f/ D J
0 H* c* l F- g& L4 j/ H: f% [
3 I% x( w7 ~0 g% ?. C; f) rAA1A:= BARSLAST(CROSS(DEA, DIF))+1;8 y/ f. e# m4 T: F* ~5 R6 H: B M: J' B" A3 f8 Z
AA1B:= IF(起死回生 OR 金叉失败, BARSLAST(起死回生 OR 金叉失败)+3, 99999);- b! S& h/ k8 E9 s
% r4 r) _* L7 ^3 r+ P w. Y5 x AA1:= IF(AA1B<AA1A, AA1B, AA1A);
4 ]; Z- E9 z$ B9 S2 A8 z1 D7 @" @. C. j' l; R2 a2 k+ B+ Y' \9 R9 L
# q ^8 ~2 l7 }AA2A:= REF(BARSLAST(CROSS(DEA, DIF)), AA1)+1;" [( F5 v* l7 W. p4 Q
- `* H- _: C7 O$ r5 V8 BAA2B:= IF(REF(起死回生 OR 金叉失败, AA1), REF(BARSLAST(起死回生 OR 金叉失败), AA1), 99999)+3;! I7 s) L1 }* S" o% w! b- P9 @- e/ K2 ?+ e3 _/ R7 {
AA2:= IF(AA2B<AA2A, AA2B, AA2A);
) ~5 U. L" r x* y! b$ y+ O& n4 v2 z# P! X W+ l6 W$ ]9 j$ O: u f! i6 y; B8 d, ?
( C# I i! z6 t% p1 ^+ rDIFZ~小值:= LLV(DIF, AA1+AA2);
" B( n+ A/ A0 U" E7 `8 `$ V+ m$ F4 c3 f- N+ A3 `% ~! nDIFZ~小日:= LLVBARS(DIF, AA1+AA2);8 }. w4 ]* e ~# A4 g" H- e7 W3 }
8 D8 O3 c2 c8 Q7 f% ], Q GDBL1:= IF(DIFZ~小日<=AA1, 0, 1);
% t) I& u( `: b5 s& [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) _. T) P$ L0 h# z q3 r$ `" E! Y
DBL:= IF(DBL1=0, 0, DBL2);
5 t$ A. F9 s+ j7 H6 J7 W. p F$ ?7 Q* V3 c0 b5 g5 ?# e$ S$ V. @& H4 u% h: _9 M% Q5 q6 }
DBLJC: DBL AND (CROSS(DIF, DEA) OR 起死回生) AND DIF>REF(DIF, 1);
|
|