苍狼MACD% _6 v' c& w7 H4 M4 B# h
{N1=3, N2=10,N3=10,N4=20,M=9}
5 F; i8 b& ?* l# j, g9 \5 K短波 EMA(C,N1)-EMA(C,N2))*1000,LINETHICK0,COLORRED;# Y# M* x* F& n0 v$ a( C
短均线:EMA(短波,M),LINETHICK0,COLORCYAN;2 a8 a( i2 d+ m1 ]" z5 k
MACD:=2*(短波-短均线); x' M$ @) A8 S! R n. x
{中波}. H+ W0 G5 g p
中波:(EMA(C,N3)-EMA(C,N4))*1000,COLORYELLOW;
7 o0 \$ F6 O$ |% T! s3 G. C中均线:EMA(中波,M),COLORBLUE;$ l9 y% q1 d$ x3 z
MACD2:2*(中波-中均线),LINETHICK1;
. E5 H7 P+ P; o1 {1 H, mSTICKLINE(MACD2>=0,MACD2,0,2,1),COLORMAGENTA;: |- S6 r3 Z" X
STICKLINE(MACD2=中均线,中波,中均线,6,0),COLORYELLOW;+ c w y( j1 s: a2 b( T
STICKLINE(中波=短均线,短波,DRAWNULL),COLORRED,LINETHICK2;
* D5 Q8 t1 [8 Q* R4 AEE:=CROSS(中波,中均线) AND MACD2>REF(MACD2,1) AND 短波>=REF(短波,1) AND 中均线>=REF(中均线,1);
! m2 ?/ p& b2 K: m; T( J) ^出来:=FILTER(EE,10);
8 B: i0 F, |/ w' xDRAWICON(出来,中均线,1); |