N1:=12;N2:=26;N3:=9;
DIFF:=(EMA(CLOSE,N1) - EMA(CLOSE,N2));
DEA:=EMA(DIFF,N3);
MACD2:=(2 * (DIFF - DEA));
进攻:(((HHV(macd2,4) < 0) AND (MACD2 > REF(MACD2,1))) AND (REF(MACD2,1) < REF(MACD2,2))) AND (REF(MACD2,2) < REF(MACD2,3));
九毛八公式解读
N1赋值:12 N2赋值:26 N3赋值:9 DIFF赋值:(收盘价的N1日指数移动平均 - 收盘价的N2日指数移动平均) DEA赋值:DIFF的N3日指数移动平均 MACD2赋值:(2 * (DIFF - DEA)) 输出进攻:(((4日内MACD2的最高值 < 0) AND (MACD2 > 1日前的MACD2)) AND (1日前的MACD2 < 2日前的MACD2)) AND (2日前的MACD2 < 3日前的MACD2)