多周期macd共振指标!# t" y# C1 @- j
8 s% O; ]- b. `$ W) w% m: { 对于MACD指标,情有独钟,读三重过滤法,均线口诀歌等,有感而发了一个指标,既然MACD的核心是两根均线的分离聚合,那么可以用MACD的dif线提前发现当研究的均线的变向,比如短线8,12,中线20,长线60,120,250线,只要给他一个稍长一点的参照均线即可。研究出来以后,发现所有的大级别的涨都是共振,共振级别不同。涨幅不同,如果是牛市,可以适当放宽短线,多做中长线,熊市,尽量做共振级别的短线,有危险就跑。" m" I- R! n1 D, u" F
所谓共振,就是各种周期均线一起发力,多周期MACD共振的力度六组,力度依弱到强,,在上涨的时候分五种,一种是超短线,一种是常规的短线,一种是月级别,一种是季级别,一种是半年级别,一种是年级别。年和半年级别只在于长线方向的判定,剩下四个级别可以作为共振的选择。长线在在空间上分为四部分,熊市结尾到零轴,零轴到牛市结束,牛市高点到零轴,零轴到熊市结尾,选取可以操作的分为紫色买进持仓,黄色减仓择机进场,淡蓝色抢熊市反弹,蓝色空仓离场。1 c R$ X5 @% J- C
多周期macd共振指标:: f5 o m8 D0 b) m8 @: c% L
0,COLOR666666;
! z$ |1 n. u+ {! ]; vDIF1:=(EMA(C,6)-EMA(C,13));
4 g- _& {. f: B- \% KDEA1:=EMA(DIF1,6),COLORWHITE;6 s' J8 H" k* t' N$ _# i
MACD1:=(DIF1-DEA1)*2;& r/ C6 z) S, p. q8 S4 b) |8 B
MAMACD1:=MA(MACD1,2);- f2 y' z7 w U6 J8 ]* @+ c
DIF2:=(EMA(C,12)-EMA(C,26));) X3 ~: J K- x* o
DEA2:=EMA(DIF2,9),COLORWHITE;
+ g( I' u6 _- ~6 KMACD2:=(DIF2-DEA2)*2;- d' d8 K$ [' J- U1 q) ?
MAMACD2:=MA(MACD2,2);
8 X- S4 ?5 M. x6 |DIF3:=(EMA(C,20)-EMA(C,60));
' i& C( }# J4 c# x4 w* X4 i0 FDEA3:=EMA(DIF3,10),COLORWHITE;
8 U' ~2 f( E- s! r% A, BMACD3:=(DIF3-DEA3)*2;0 ^2 T3 [; R- l3 k
MAMACD3:=MA(MACD3,2);
# g( n2 i* a& R/ ^DIF4:=(EMA(C,60)-EMA(C,120));
" M* n% t, z) C, D6 m" {# u+ G% m/ sDEA4:=EMA(DIF4,10),COLORWHITE;- Q* r. v* ~6 z' r* W, g
MACD4:=(DIF4-DEA4)*2;
5 D# q# I o7 t7 VMAMACD4:=MA(MACD4,2);0 a& u. F8 w& Z' R6 _ J8 L
DIF5:=(EMA(C,120)-EMA(C,250));
) Y0 ]0 b$ l0 T; A, UDEA5:=EMA(DIF5,10),COLORWHITE;
/ x z5 x0 b) u( CMACD5:=(DIF5-DEA5)*2;/ B4 C& ^- ^6 t% {
MAMACD5:=MA(MACD5,2);
1 k4 E$ Q# h& u! ], c2 p8 `- nDIF6:=(EMA(C,250)-EMA(C,500));
! o$ T; b0 F! {DEA6:=EMA(DIF6,10),COLORWHITE;
" p( H( u+ X) g5 t0 tMACD6:=(DIF6-DEA6)*2;
* Z% H* s+ R4 ]* k0 F1 O# ~MAMACD6:=MA(MACD6,2);
& A7 a! {. I: J5 X* G" V& i. TA1:=DIF1>=REF(DIF1,1);
5 G' N2 t" v2 i: {; P1 ~# a: jA2:=DIF2>=REF(DIF2,1);
& V- x9 C& |! ]6 PA3:=DIF3>=REF(DIF3,1);8 W9 t) F0 e2 L0 U8 u! b
A4:=DIF4>=REF(DIF4,1);( V v6 i/ V1 U2 O
A5:=DIF5>=REF(DIF5,1);8 I0 h; K6 g4 B) ]( Z5 h/ v) N
A6:=DIF6>=REF(DIF6,1);5 F$ ~8 R, D' T4 C
B1:=DIF1<=ref(dif1,1);9 P# n2 h$ q' y
B2:=DIF2<=ref(dif2,1);
- Y& q3 ~7 G/ i" jB3:=DIF3<=ref(dif3,1);# H! k5 n) }9 w8 U
B4:=DIF4<=ref(dif4,1);" ^/ }% f4 w K& q0 F. h
B5:=DIF5<=ref(dif5,1);3 q, l5 i" {$ }% z+ ~
B6:=DIF6<=ref(dif6,1);. c4 t5 L/ b1 Z! b6 e' `6 L
! c1 t v% m. E9 k* o
A7:=DIF6>0 ANDDIF6& e6 Z. x. s2 J6 \" D: X% C
A8:=DIF6<0>REF(DIF6,1);{牛市初期}
T' A. ]9 }) X1 q0 j. f. `+ Z3 LA9:=DIF6<0 ANDDIF6
' x% A( v% R, _3 m- m4 I# l; |% S3 RA10:=DIF6>0 ANDDIF6>REF(DIF6,1);{牛市成长期}
; @. Q% a6 f. fA11:=DIF4<=ref(dif4,1);
* K/ }/ R7 H8 J+ m% QA12:=DIF5<=ref(dif5,1);; T7 \0 x) r# ~8 z* P
( [/ D9 W' V( d* V% j" WSTICKLINE(A6,0,1,3,0),COLORBLUE;
- l# Y2 T \3 ?" c) xSTICKLINE(A5,1,2,3,0),COLORDDDDDD;3 ]$ ^* b8 u; h
STICKLINE(A4,2,3,3,0),COLORRED;, N9 G6 l j8 e8 [* c
STICKLINE(A4 AND A3 AND A2,3,4,3,0),COLORMAGENTA;
: S6 a2 f8 ^6 @8 C* }0 M4 eSTICKLINE(A4 AND A3 AND A2 AND A1,4,5,3,0),COLORYELLOW;
1 v3 N; }9 f! Y! @2 bSTICKLINE(B6,0,1,3,0),COLOR333333;" T/ {; m6 i- m! Y5 m" Y
STICKLINE(B5,1,2,3,0),COLOR444444;
! a( S) O5 E. a6 y! K' z6 eSTICKLINE(B4,2,3,3,0),COLOR666666;
4 i# M" t* n) [$ _+ mSTICKLINE(A6 OR A5,7.5,8,3,0),COLOR339999;
8 S5 o& g5 M3 ]/ ]; o6 h) vSTICKLINE(A6 OR A5,7.5,8,1,0),COLOR33FFFF;' u& @/ F2 u. | m8 O" n; J8 _
STICKLINE(B5 OR B6,7.5,8,3,0),COLOR333333;
3 V1 S+ T3 _2 }/ o0 o$ N/ @" }STICKLINE(B5 OR B6,7.5,8,1,0),COLOR666666;; ` G9 l; `1 e- h: V4 v, h9 `
STICKLINE((A6 OR A5) AND A4 AND A3 ANDA2 ,7.5,8,3,0),COLOR993399;8 L% [3 l# X4 O. s' F
STICKLINE((A6 OR A5) AND A4 AND A3 ANDA2 ,7.5,8,1,0),COLORFF00FF;! W! x& a$ l$ n
STICKLINE((B6 OR B5) AND A4 AND A3 AND A2 ANDA1,7.5,8,3,0),COLOR666600;
2 v/ J0 o ~1 B* Q- w' P- z# tSTICKLINE((B6 OR B5) AND A4 AND A3 AND A2 ANDA1,7.5,8,1,0),COLORFFFF00; |