这个就是简单地MACD选股啊,中间那几个划线一删就是了:DIFF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);DEA:=EMA(DIFF,9);MACD:=(DIFF-DEA)*2;买入:CROSS(DIFF,DEA);卖出:CROSS(DEA,DIFF);
DIFF:EMA(DCLOSE,12)-EMA(DCLOSE,26);DEA:EMA(DIFF,9);MACD:(DIFF-DEA)*2;CROSS(DIFF,DEA);已测试!PS:楼上的答案错误!