a1:=barslast(ref(cross("macd.diff","macd.dea"),1));b1:=ref(c,a1+1)>c and ref("macd.diff",a1+1)("macd.diff","macd.dea");macd底背:if(b1>0,10,0);起个名字,保存成条件选股公式就可以了。(如果对您有帮助请采纳答案谢谢)
副图修改后的选股公式如下.xg:filter(count(cross(((c-ma(c,5))/ma(c,5)*100),0),3)>=1 and ((c-ma(c,30))/ma(c,30)*100)>ref(((c-ma(c,30))/ma(c,30)*100),1) and ma(c,5)>ref(ma(c,5),1) and (c/ref(c,1)-1)*100>5...