股票论坛

标题: 关于MACD的选股公式,谢谢!! [打印本页]

作者: 夜谈天方    时间: 2015-11-9 16:28
标题: 关于MACD的选股公式,谢谢!!
DIF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIF,9);
MACD: (DIF-DEA)*2 COLORSTICK;
TJ:=MACD>0;T:=MACD<0;
A:=LLV(MACD,50)=MACD;
DRAWICON(A AND FILTERX(A,20), MACD,1);
DRAWTEXT(BARSLAST(TJ)=1,MACD,'1'),COLORYELLOW;
DRAWTEXT(BARSLAST(TJ)=2,MACD,'2'),COLORYELLOW;
DRAWTEXT(BARSLAST(TJ)=3,MACD,'3'),COLORYELLOW;
DRAWTEXT(BARSLAST(TJ)=5,MACD,'5'),COLORYELLOW;
上面是MACD的代码
   条件:
1、MACD变红的天数为第五天  
2、MA5与MA10成多头排列
   这两条件   帮我写写
作者: 新人报道    时间: 2015-11-9 16:28
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
M5:=MA(C,5);
M10:=MA(C,10);
REF(MACD<0,5) AND NDAY(MACD,0,5) AND M5>M10 AND M5>REF(M5,1) AND M10>REF(M10,1);




欢迎光临 股票论坛 (http://100000w.com/) Powered by Discuz! X3.2