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);起个名字,保存成条件选股公式就可以了。(如果对您有帮助请采纳答案谢谢) 20210311
{大智慧版本} macd2:=2*("macd.diff"-"macd.dea");stickline(macd2>=0 and macd2>ref(macd2,1),0,macd2,1.2,0),color0000a5;stickline(macd2>=0 and macd2(macd2,1),0,macd2,1.2,0),coloraa7800;stickline(macd2...