adif:=ema(close,12)-ema(close,26);adea:=ema(adif,9);amacd:=(adif-adea)*2;周dif:="macd.dif#week;周dea:="macd.dea#week;周macd:="macd.macd#week;xg:amacd<0 and adif>0 and 周dif>0 and 周macd>0; 20210311
具体的选股公式如下aa:=count(cross(macd.dea,macd.dif),barslast(macd.dea>=0));二次死叉:cross(macd.dea,macd.dif) and macd.dea<0 and count(aa=2,30)=1; macd称为指数平滑移动线,是从双指数移动平发展而来的,由快的指数移动平均线(ema)减去慢的指数移动平均线,macd...