MACD制胜一绝!!!(含源码)
0
买入法一 `O|PP3S J^BC DIFF:=EMA(CLOSE,6)-EMA(CLOSE,10); 2kU=9W6ND DEA:=EMA(DIFF,5); ]
6rr;S MACD:=2*(DIFF-DEA),COLORSTICK; 4zM$I rZv5>aEI 金叉信号1:CROSS(CLOSE,MA(CLOSE,34)) and CROSS(MA(CLOSE,3),MA(CLOSE,8)); U.HeIJ# A1:=DIFF<REF(DIFF,1) and DIFF<0; ]za1=~[ A2:=BARSLAST(A1) and MACD>0; @9<
M
W 买入信号:FILTER(A2,10) 7'9~Kx&+ C~dD'Tq] 4RV5:&ALLS 买入法二 o Z#4<7K DU/WB DIFF:=EMA(CLOSE,6)-EMA(CLOSE,10); Lg[_9`\ DEA:=EMA(DIFF,5); lnoK.Vk9, MACD:=2*(DIFF-DEA); bl;C=n wx|eO[14 金叉信号2:CLOSE>=MA(CLOSE,34) and CROSS(MA(CLOSE,3),MA(CLOSE,8)); Fn~?YN A3:=CROSS(DIFF,MACD); C!8XFf8e A4:=BARSLAST(A3) and CROSS(MACD,DIFF); GCTf/V\# 买入信号:A4; tK+K lz n-7|{1U vpGeG 使用方法: hw [G 周期选择:周K线。 |?Z;tAF! 参数设置:均线3,8,34周 cR+9^DzA MACD参数依次设置为:6,10,5 wv8WqYV 买入法一:股价在34周均线以下上穿34周均线,3周均线金*8周均线。MACD指标:DIF在0线以上快速下滑至0线以下DIF金*MACD线,MACD红柱第一次出现,为买入信号。 yF}l.>7D 买入法二:股价在34周均线之上,3周均线金*(或已金*)8周均线,MACD指标,DIF在0线以上死*MACD线,快速下滑再次金*MACD线,MACD红柱第一次出现,为买入信号。
|