MACD制胜一绝!!!(含源码)
0
买入法一 -$g~,dIwj 4]p#9`j DIFF:=EMA(CLOSE,6)-EMA(CLOSE,10); kkb+qo DEA:=EMA(DIFF,5); &!WRa@x0I MACD:=2*(DIFF-DEA),COLORSTICK; H-u
SdT jgPUR#) 金叉信号1:CROSS(CLOSE,MA(CLOSE,34)) and CROSS(MA(CLOSE,3),MA(CLOSE,8)); Hsv)]
%p A1:=DIFF<REF(DIFF,1) and DIFF<0; |7A}LA A2:=BARSLAST(A1) and MACD>0; kn$_X4^? 买入信号:FILTER(A2,10) q I~*G3 -Hw3rv3o 5|pF*8* 买入法二 :wg=H 9c,/490Q DIFF:=EMA(CLOSE,6)-EMA(CLOSE,10); c[ 0`8s! DEA:=EMA(DIFF,5); (^g XO MACD:=2*(DIFF-DEA); uCuB>x& #Y 金叉信号2:CLOSE>=MA(CLOSE,34) and CROSS(MA(CLOSE,3),MA(CLOSE,8)); %+|sbRBb A3:=CROSS(DIFF,MACD); :KXI@)M A4:=BARSLAST(A3) and CROSS(MACD,DIFF); Y[R>?w 买入信号:A4; ]
W2#8:i vp!F6ZwO j}
^3v # 使用方法: aTeW#:m 周期选择:周K线。 [ @"6:tTU 参数设置:均线3,8,34周 5%fWX'mS MACD参数依次设置为:6,10,5 #<
eD 买入法一:股价在34周均线以下上穿34周均线,3周均线金*8周均线。MACD指标:DIF在0线以上快速下滑至0线以下DIF金*MACD线,MACD红柱第一次出现,为买入信号。 A4#FAFy 买入法二:股价在34周均线之上,3周均线金*(或已金*)8周均线,MACD指标,DIF在0线以上死*MACD线,快速下滑再次金*MACD线,MACD红柱第一次出现,为买入信号。
|