dif:=ema(close,12)-ema(close,26);dea:=ema(dif,9);macd:=(dif-dea)*2,colorstick;xg:count(c/ref(c,1)>1.07,120)>=2 and last(macd<ref(macd,1) and macd<0,7,1) and macd>ref(macd,1);这个是第二个的选股公式...
macd.macd>ref(macd.macd,1)and ref(last(macd.macd(macd.macd,1)and macd.macd>0,5,1),1)and macd.macd>ref(macd.macd,1)and macd.macd>0 and macd.macd<0.8 andmacd.dif>0 and macd.dif;
上面这个是底背离,下面是顶背离,参数自己加吧,如果不会加的话就追问,直接给你坐进去dif:=ema(close,short)-ema(close,long);dea:=ema(dif,mid);macd:=(dif-dea)*2,colorstick;底背离:c<=llv(c,60) and macd>=ref(macd,1);这个只是根据红绿柱背离做的,你试试吧 别忘了把参数加上,s...