很简朴,GL20上穿0轴为建仓,GL50上穿0轴为走强,共同MACD柱子看多空
* X8 \9 Z; E I) \ f( |9 c/ X/ K8 Z
源码如下:' s7 N5 ?; v- Q
DIF EMA(CLOSE,12) - EMA(CLOSE,26)),COLORRED,NODRAW;7 U5 m+ l/ m+ s+ L% K! `
DEA:EMA(DIF,9),COLOR00FFFF,NODRAW;
. B+ ]: ]" M% P1 S/ H# K3 CMACD:8*(DIF-DEA),NODRAW;
, r9 K4 Z+ K1 z& T. ~0 b; T; q1 y. F; \
+ n* y0 r9 ]; P
1 D+ k9 g' f- V0 C. e
GLM:COST(50)-COST(20),COLORRED,LINETHICK0;
. H; V4 L' n: g5 W2 DGL50:EMA(C-COST(50),5),COLOR00FFFF,LINETHICK0;) b9 n& A) `8 v8 m9 o* k$ L" e2 [4 e& c, n
GL20:EMA(C-COST(20),5),COLORFF00FF,LINETHICK0;
4 N6 e3 m9 t( x; i3 HDRAWBAND(GLM,RGB(60,60,60),0,RGB(60,60,60));1 i6 x, c+ q- a
DRAWBAND(GL20,RGB(100,40,100),GLM,RGB(30,100,30));* q( q( S6 @* D* o9 U2 X& L% j+ n% M
& ]. b( [3 ?/ u9 W( p8 ?6 E
STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,1.8,0),COLOR000055;
/ y' T4 `, k5 ASTICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,1.1,0),COLOR000099;
) G1 K& { l7 C& g9 X( D8 b' oSTICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,0.6,0),COLOR0000BB;
& L8 [* B1 R' Z
- `* H8 P/ g2 u8 ]
3 b7 V1 C! J" I; L/ W: fSTICKLINE(MACD0,0,MACD,1.8,0),COLOR888888;: |% Q5 u% N; U" ^+ Y9 [/ D! ]. V$ t
STICKLINE(MACD0,0,MACD,1.1,0),COLORBBBBBB;; o2 \6 k, e x( |. D" B& ~& v8 f/ x9 o
STICKLINE(MACD0,0,MACD,0.6,0),COLORDDDDDD;, [* Z- s- s q2 |
7 ?1 `+ e3 G" A% N0 U. J9 [
STICKLINE(MACD>REF(MACD,1) AND MACDREF(MACD,1) AND MACDREF(MACD,1) AND MACD |