网友求助:
请高手帮助编写同时满足以下三个条件的大智慧选股和预警公式,谢谢!
1.MACD(参数64 128 64)的MACD>0
2.MACD(参数 8 16 8 )的MACD>0
3.30分钟MACD(12 26 9)DIFF上穿DEA
解答如下:
DIFF1:=EMA(CLOSE,64) - EMA(CLOSE,128);
DEA1:=EMA(DIFF1,64);
MACD1:=2*(DIFF1-DEA1);
DIFF2:=EMA(CLOSE,8) - EMA(CLOSE,16);
DEA2:=EMA(DIFF2,8);
MACD2:=2*(DIFF2-DEA2);
MACD1>0 AND MACD2>0 AND CROSS("MACD.DIFF#30MIN","MACD.DEA#30MIN");