TA的每日心情 | 开心 2019-5-15 08:50 |
---|
签到天数: 134 天 [LV.7]签到七级
四段
- 积分
- 9950
|
DIF:= EMA(CLOSE,12)-EMA(CLOSE,26);# ~: ?* {4 K& X
DEA:= EMA(DIF,9);
/ c+ k- ]: E! @MACD:= (DIF-DEA)*2;
7 R# {7 D$ r t" H, ~3 C
3 x* h4 K* _4 Z+ e' I0 |均值:= SUM(ABS(MACD), 100)/100;
6 P& i# A' |( b" r2 W# }: mNOTEXT起死回生:= REF(MACD, 2) > REF(MACD, 1) AND REF(MACD, 1) < 均值*0.1 AND . R G8 C* a3 Z! f4 V4 w. m; E( h
REF(MACD, 1)>=0 AND REF(MACD, 1) < MACD;7 T: K7 a" U8 y; c/ D/ r9 F7 @
金叉失败:= REF(MACD, 2) < REF(MACD, 1) AND REF(MACD, 1) > 0-均值*0.1 AND
* P4 w$ b* j/ W REF(MACD, 1)<=0 AND REF(MACD, 1) > MACD;' s5 E3 S4 Q! {( J
6 P' _6 m4 ?; G8 w( wAA1A:= BARSLAST(CROSS(DEA, DIF))+1;* D( X5 w+ y; o1 b$ h3 R
AA1B:= IF(NOTEXT起死回生 OR 金叉失败, BARSLAST(NOTEXT起死回生 OR 金叉失败)+3, 99999);7 `+ G/ h9 H/ g8 w1 L" y( y
AA1:= IF(AA1B<AA1A, AA1B, AA1A);
& Y5 }* v( o2 f# z! S; g' F; b% C1 @' b Q' L4 U3 r# _
AA2A:= REF(BARSLAST(CROSS(DEA, DIF)), AA1)+1;" n, e+ G5 J2 K7 p" U6 b; C$ ]
AA2B:= IF(REF(NOTEXT起死回生 OR 金叉失败, AA1), REF(BARSLAST(NOTEXT起死回生 OR 金叉失败), AA1), 99999)+3;: B8 ]/ d7 n! W) f! I
AA2:= IF(AA2B<AA2A, AA2B, AA2A);* M# J% Y4 r. S$ A! G( `& A
/ ? z2 w- Z# A/ G! L9 i
DIFZ~小值:= LLV(DIF, AA1+AA2);
[8 o( p/ w' R! d- @, i7 r5 g! wDIFZ~小日:= LLVBARS(DIF, AA1+AA2);
7 m8 R }* d, ]% d ADBL1:= IF(DIFZ~小日<=AA1, 0, 1);" ^2 a: i% s3 g0 O. j3 _3 ?8 H
DBL2:= IF(DBL1=1 AND C<REF(C, DIFZ~小日) AND DIF>REF(DIF, DIFZ~小日), 1, 0);1 [1 {$ d% G3 x0 A( P
DBL:= IF(DBL1=0, 0, DBL2);. ] f6 C, I4 F
/ V/ W0 |- a6 F9 r, U8 k
DBLJC: DBL AND (CROSS(DIF, DEA) OR NOTEXT起死回生) AND DIF>REF(DIF, 1);
5 D' _% C0 w; O' a2 l; `5 R' Q; B7 f1 O( o4 \
+ y* u3 U5 l! s, ` S
$ p2 W* q9 f0 L按下面的来,注意是选股公式,不是指标公式,还有公式名称不能太长。, e: C6 S/ Q5 p6 B! B. r$ ~2 b
- a2 I8 M4 b! g* c5 c: a0 k: C9 p# w- U" Z2 r# V% `
6 o* H& V# J" L A" c' m DIF:= EMA(CLOSE,12)-EMA(CLOSE,26);/ P. S1 x& T# Q2 H# G' Z1 m; c' s7 I
; E6 c8 |5 I0 U5 h2 n: P2 W0 e! O7 E; I JDEA:= EMA(DIF,9);
9 W- J$ |( r+ I8 B2 x) K% h- Q& S0 K! qMACD:= (DIF-DEA)*2;0 k j* s7 u7 G$ m5 K4 a: g! B
( A+ ]0 [5 N! b. c/ X' K$ L
- x: @" Q$ |% j4 S# T5 U) E: t5 S" i! ~: F1 A+ ^9 j均值:= SUM(ABS(MACD), 100)/100;
( H5 g5 u. P; d2 L8 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( [ R) F: V1 W5 \3 L, E# }) s: O
REF(MACD, 1)>=0 AND REF(MACD, 1) < MACD;* z" N+ ^2 Z, N. Z) `
" ^+ 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+ {/ ]( A+ E% u, t
REF(MACD, 1)<=0 AND REF(MACD, 1) > MACD;5 P+ y8 L6 O: w! I& q
% f) u& Q2 ]( o: M, n
( T, y. b; u2 I' C+ l3 I% x( w7 ~0 g% ?. C; f) rAA1A:= BARSLAST(CROSS(DEA, DIF))+1;8 y/ f. e# m4 T: F* ~5 R
1 T& }2 x2 P9 ^5 f- t* s AA1B:= IF(起死回生 OR 金叉失败, BARSLAST(起死回生 OR 金叉失败)+3, 99999);- b! S& h/ k8 E9 s
: n* ~6 r$ E6 c" k; h1 ]) Z' X, } AA1:= IF(AA1B<AA1A, AA1B, AA1A);/ `9 U! w R" J1 B% Q$ C
9 S2 A8 z1 D7 @" @. C. j' l
" l6 U8 r, B9 y; ]+ a# q ^8 ~2 l7 }AA2A:= REF(BARSLAST(CROSS(DEA, DIF)), AA1)+1;6 s( z& {5 G. D9 E" T! p! r3 E
- `* H- _: C7 O$ r5 V8 BAA2B:= IF(REF(起死回生 OR 金叉失败, AA1), REF(BARSLAST(起死回生 OR 金叉失败), AA1), 99999)+3;! I7 s) L1 }* S" o% w
# L1 q* a; m0 O7 w9 w; P5 m' q" a AA2:= IF(AA2B<AA2A, AA2B, AA2A);% D. `% W& J+ r' x$ c$ i6 |
2 z# P! X W+ l6 W$ ]1 L+ t2 {! b5 h' i% C5 N
( C# I i! z6 t% p1 ^+ rDIFZ~小值:= LLV(DIF, AA1+AA2);
( g5 A! o# a a$ V+ m$ F4 c3 f- N+ A3 `% ~! nDIFZ~小日:= LLVBARS(DIF, AA1+AA2);, U. q2 ?: @: N; s( |, o
8 D8 O3 c2 c8 Q7 f% ], Q GDBL1:= IF(DIFZ~小日<=AA1, 0, 1);: I! ?! ~4 H, f0 z: J
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& O5 s0 j* I; r$ s m& S% v
DBL:= IF(DBL1=0, 0, DBL2);
4 b0 I+ C6 l0 \: R7 X4 u$ ?7 Q* V3 c0 b5 g5 ?# e$ S$ V. @& H4 u4 R7 _4 p7 q. x/ q5 K d0 [
DBLJC: DBL AND (CROSS(DIF, DEA) OR 起死回生) AND DIF>REF(DIF, 1);
|
|