MACD绿区掉头
2015-11-25 13:14:35点击:
MACD绿区掉头
1.MACD在绿区掉头
2.收盘价在25日均线上但处于99日均线下(空间越大越好)
符合上述特征就买入
1.买入后股价跌破25日线,次日止损
DIFF : EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);
DEA : EMA(DIFF,M);
MACD : 2*(DIFF-DEA);
MACDBUY1 : IF(REF(MACD,1)>LLV(MACD,N),0,1);
MACDBUY2 : IF(CLOSE>MA(CLOSE,25),1,0);
MACDBUY3 : IF(MA(CLOSE,99)>CLOSE,1,0);
MACDBUY4 : IF(MACD<0,1,0);
MACDBUY:=(MACDBUY1+MACDBUY2+MACDBUY3+MACDBUY4)