MACD制胜一绝!!!(含源码)
0
买入法一 DV[ Jbl:) "h^#<b
PN DIFF:=EMA(CLOSE,6)-EMA(CLOSE,10); PyT}}UKj: DEA:=EMA(DIFF,5); Xc2B2c MACD:=2*(DIFF-DEA),COLORSTICK; Cre0e$ a Gr#rM/AfCK 金叉信号1:CROSS(CLOSE,MA(CLOSE,34)) and CROSS(MA(CLOSE,3),MA(CLOSE,8)); |/\U^AHm"h A1:=DIFF<REF(DIFF,1) and DIFF<0; Hx2j=Q_dw A2:=BARSLAST(A1) and MACD>0; ;Co[y=Z 买入信号:FILTER(A2,10) J7?)$,ij% (>LHj]}K UiK+c30FU 买入法二 { 1@4}R4 :Q
r7:$S^ DIFF:=EMA(CLOSE,6)-EMA(CLOSE,10); c_G-R+ DEA:=EMA(DIFF,5); /s8%02S MACD:=2*(DIFF-DEA); &Ev]x2YC kh?#={]Z 金叉信号2:CLOSE>=MA(CLOSE,34) and CROSS(MA(CLOSE,3),MA(CLOSE,8)); ^wO_b'@v A3:=CROSS(DIFF,MACD); *mQDS.'AB@ A4:=BARSLAST(A3) and CROSS(MACD,DIFF); `F2*o47|t 买入信号:A4; $uUb$8Bu dx13vZ3[U /SCZ& 使用方法: EK8E 周期选择:周K线。 :%uyy5A
Z 参数设置:均线3,8,34周 [t MACD参数依次设置为:6,10,5 CFBUQMl> 买入法一:股价在34周均线以下上穿34周均线,3周均线金*8周均线。MACD指标:DIF在0线以上快速下滑至0线以下DIF金*MACD线,MACD红柱第一次出现,为买入信号。 7zg)h 买入法二:股价在34周均线之上,3周均线金*(或已金*)8周均线,MACD指标,DIF在0线以上死*MACD线,快速下滑再次金*MACD线,MACD红柱第一次出现,为买入信号。
|