本公式可以猜测MACD今明两日的金(死)叉,乃至可以提前1-2天告之金(死)叉的发生,帮你提前做好准备。
o+ \4 P; E4 r4 z1 V使用方法:移动十字光标至MACD银(金)柱时,体现猜测价位;参数根据个人的喜好可以调解。: i. }' u/ A& g1 h& h
源码如下:+ ^& }' ^' Y) ~7 ?* f
{参数}N1:=12;N2:=26;M:=9;; J' ~2 _& G$ }! X) i
DIFF: EMA(CLOSE,N1)-EMA(CLOSE,N2),COLORBB00BB,LINETHICK2,LAYER0;2 m5 z+ N+ n' d& b5 n# X- h, A4 o6 Q
DEA:EMA(DIFF,M),COLOR00BB00,LINETHICK2,LAYER0;
) _/ V9 _8 ]9 t& o2 d+ VMACD: (DIFF-DEA)*2,COLORSTICK;
; j9 s! Y( _7 E$ m6 D7 m4 RSTICKLINE(MACD0,0,MACD,8,0 ),COLOR003333;
/ f+ W5 m# _) F% k+ zSTICKLINE(MACD0,0,MACD,7,0 ),COLOR004444;( l( ]0 ]- p0 H0 I; k- ?( z
STICKLINE(MACD0,0,MACD,6,0 ),COLOR005555;
+ O B7 z- `8 Z8 q1 HSTICKLINE(MACD0,0,MACD,5,0 ),COLOR007777;
( d, S0 b1 M/ K1 ySTICKLINE(MACD0,0,MACD,4,0 ),COLOR009999;
2 R$ s, D5 \3 J% p5 V' i4 ?2 R# F5 FSTICKLINE(MACD0,0,MACD,3,0 ),COLOR00BBBB;
9 z! Z; D, k- @# ^! oSTICKLINE(MACD0,0,MACD,2,0 ),COLOR00DDDD;
8 D- }+ F3 H$ m5 o; z( OSTICKLINE(MACD0,0,MACD,1,0 ),COLOR00FFFF;
. R6 K. I- J V' O* ~2 o# \STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,8 ,0 ),COLOR000033;' K* `, {7 L* v, I% F8 Y
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,7 ,0 ),COLOR000044;
' x) w7 C3 Q* t3 [! @# LSTICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,6 ,0 ),COLOR000055;
& a# R' o3 P9 ^2 _STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,5 ,0 ),COLOR000077;
E6 c n3 m8 _" u# v- d$ X5 A2 K+ x* HSTICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,4 ,0 ),COLOR000099;( z2 e a7 r: B9 T
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,3 ,0 ),COLOR0000BB;7 A$ k: k. D: E0 A
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,2 ,0 ),COLOR0000DD;4 H% ]+ T/ v4 `0 ?4 J5 k
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,1 ,0 ),COLOR0000FF;
$ v; j& a1 j/ G1 _: U% @ {6 {, W/ t/ s0 |* O) i
STICKLINE(MACD>REF(MACD,1)AND MACDREF(MACD,1)AND MACDREF(MACD,1)AND MACDREF(MACD,1)AND MACDREF(MACD,1)AND MACDREF(MACD,1)AND MACDREF(MACD,1)AND MACDREF(MACD,1)AND MACD |