TA的每日心情 | 开心 2019-5-15 08:50 |
---|
签到天数: 134 天 [LV.7]签到七级
四段
- 积分
- 9950
|
网上抄来的,先看效果,下面第二栏就是,第三栏是传统的MACD,相比传统的MACD图,这个用颜色标明了红绿柱长短变化2 @2 V4 S, i- L$ b6 }% ]9 ?
( g; i- K8 N- j
公式:
' r" q& Q; i8 C: ?7 g" a$ o" R( I, p" nP:=13;S:=5;M:=1;
U4 I, V7 J/ e& \DIFF:EMA(C,S)-EMA(C,P);
C0 p4 A* M0 s% @0 e8 J4 rDEA:EMA(DIFF,M),COLORRED;
6 l- }3 w, q! S6 C$ F CMACD:2*(DIFF-DEA),COLORSTICK;: d) i7 S, B Q1 N9 T
P1:=P;S1:=S;
* K" U% {. R& [/ F; [+ u$ ZDIFF1:EMA(C,S1)-EMA(C,P1);1 ?; S; O9 t% @
DEA1:EMA(DIFF,M),COLORRED;& @+ z- v) B2 B: {3 U0 @
MACD1:=2*(DIFF1-DEA1);
2 U. U5 x9 J2 j; R. ^; J0 zMACD2:=DEA;4 I5 Y+ F6 x( m
STICKLINE(MACD2<=REF(MACD2,1)AND MACD2>0,0,MACD2,3,0 ),COLOR00AAFF;7 g9 [: R: ]. q6 U- H" b* D* y
STICKLINE(MACD2<=REF(MACD2,1)AND MACD2>0,0,MACD2,1.8,0 ),COLOR00BBFF;3 q# w4 V' c' j, ?/ i, Q
STICKLINE(MACD2<=REF(MACD2,1)AND MACD2>0,0,MACD2,1.3,0 ),COLOR00CCFF;
" \) r, y0 }% c3 G, m' KSTICKLINE(MACD2<=REF(MACD2,1)AND MACD2>0,0,MACD2,1.2,0 ),COLOR00DDFF;
% X: [) L2 h, p8 N. gSTICKLINE(MACD2<=REF(MACD2,1)AND MACD2>0,0,MACD2,1,0 ),COLOR00EEFF;
( m n& c: i, r' vSTICKLINE(MACD2<=REF(MACD2,1)AND MACD2>0,0,MACD2,0.5,0 ),COLOR00FFFF;+ \* l. n! Z8 j( R3 P8 V! Q5 k
STICKLINE(MACD2>REF(MACD2,1)AND MACD2>0,0,MACD2,3.4,0 ),COLOR0000AA;
* D w- p; ^/ v+ i) s: r5 hSTICKLINE(MACD2>REF(MACD2,1)AND MACD2>0,0,MACD2,3.2,0),COLOR0011BB;6 u2 n; @* T8 @ _* g
STICKLINE(MACD2>REF(MACD2,1)AND MACD2>0,0,MACD2,3,0),COLOR0022CC;
, Z! {9 ] }# e- L6 ]STICKLINE(MACD2>REF(MACD2,1)AND MACD2>0,0,MACD2,2,0),COLOR0033DD;. I k* e: z3 U# H/ c$ {
STICKLINE(MACD2>REF(MACD2,1)AND MACD2>0,0,MACD2,1,0),COLOR0044EE;7 W$ O7 @! R: @& Q7 ?
STICKLINE(MACD2>REF(MACD2,1)AND MACD2>0,0,MACD2,0.5,0),COLOR0055FF;, M4 @" [+ L' U$ b( g$ O K. |* R8 E
STICKLINE(MACD2>REF(MACD2,1)AND MACD2<=0,0,MACD2,3.4,0),COLORAA00BB;
# G: b2 J. ]( r, b+ k/ wSTICKLINE(MACD2>REF(MACD2,1)AND MACD2<=0,0,MACD2,3.2,0),COLORBB11BB;
7 ]7 x O N0 B! FSTICKLINE(MACD2>REF(MACD2,1)AND MACD2<=0,0,MACD2,3,0),COLORCC22BB;
: X5 ^6 l8 z8 uSTICKLINE(MACD2>REF(MACD2,1)AND MACD2<=0,0,MACD2,2,0 ),COLORDD33BB;
, m) c+ ~4 x Y- ^5 jSTICKLINE(MACD2>REF(MACD2,1)AND MACD2<=0,0,MACD2,1,0),COLOREE44BB;
5 j6 \7 j/ E3 d' E6 u6 iSTICKLINE(MACD2>REF(MACD2,1)AND MACD2<=0,0,MACD2,0.5,0 ),COLORFF55BB;7 {& b! R$ O$ e; K
STICKLINE(MACD2<=REF(MACD2,1)AND MACD2<=0,0,MACD2,3,0 ),COLORFF7700;8 ?. q! t s" f" w9 ]/ |) g* q
STICKLINE(MACD2<=REF(MACD2,1)AND MACD2<=0,0,MACD2,1.5 ,0 ),COLORFF8811;
/ F8 F& G, K: p' H0 a1 D$ }# BSTICKLINE(MACD2<=REF(MACD2,1)AND MACD2<=0,0,MACD2,1.2,0 ),COLORFFAA22;
' E& l4 b, }: q: k- P5 X: mSTICKLINE(MACD2<=REF(MACD2,1)AND MACD2<=0,0,MACD2,1.0 ,0 ),COLORFFBB33;. I3 `% v5 V0 D3 }( ]
STICKLINE(MACD2<=REF(MACD2,1)AND MACD2<=0,0,MACD2,0.8 ,0 ),COLORFFDD44;2 r2 E3 i6 q+ T8 d! u
STICKLINE(MACD2<=REF(MACD2,1)AND MACD2<=0,0,MACD2,0.5 ,0 ),COLORFFFF55;! B. j* M n+ ^' `* b! z, v5 T
R:=(HHV(DEA,100)+ABS(LLV(DEA ,100)))/2;8 U6 a5 \7 ?" z+ h) I
R/4,POINTDOT,COLORFFFF00;
; Q a& N7 Q0 m) n- o, U# T* ^R/2,POINTDOT,COLORFFFF00;! N' r; Z5 }8 v5 n0 [. }
R/4*3,POINTDOT,COLORFFFF00;9 A3 l1 y; i* g! ?
-R/4,POINTDOT,COLORFFFF00;
8 o0 K+ R* o: k' J0 l* S3 T-R/2,POINTDOT,COLORFFFF00;! l2 A: N, W% h- J. P
-R/4*3,POINTDOT,COLORFFFF00;/ K% e; Y% D3 u" b* \1 c/ N
1 U2 R' Y; u* B- X: s! y( \4 R2 O8 }, M+ O# U: o
使用方法:按CTRL+F打开公式管理器,公式组选定技术指标公式后,点右边新建按钮打开指标公式编辑器,公式名称MACD2,公式类型趋势型,画线方法附图,上面公式内容复制到编辑框内,点确定编辑完毕,如下图; X9 S& N+ M0 @6 Q
- X [7 Q# D G/ \! d
Z~后在K线图窗口下的某个副图上点一下,输入公式名称MACD2,回车就可以了4 D1 Q2 k) l& P( J. i8 v9 X
|
|