原码如下:dif:=ema(close,250)-ema(close,1000);dea:=ema(dif,9);macd:=(dif-dea)*2;dea>0 and cross(dif,dea) and c>ref(c,1);{周期参数是接你说的长期设置的}ps:你的问题表达不明,你应该是想表达说,macd零轴上金叉并且今日收盘价大于昨日收盘价
dea无要求.diff :=ema(close,12) - ema(close,26);dea :=ema(diff,9);choo:ma(c,5)>ma(c,10) and ma(c,10)>ma(c,20) and ma(c,20)>ma(c,30) and ref(c,1)> ref(o,1) and o>ref(c,1) and diff>dea an...