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);起个名字,保存成条件选股公式就可以了。(如果对您有帮助请采纳答案谢谢)
diff:=ema(close,12)-ema(close,27);dea:=ema(diff,9);低位金叉:=cross(diff,dea) and diff<-0.1;jccount:=count(cross(diff,dea),barslast(dea>=0));二次金叉:=cross(diff,dea) and dea<0 and count(jccount=2,21)...
n:=34;rsv:=(close-llv(low,n))/(hhv(high,n)-llv(low,n))*100;k:=sma(rsv,3,1);d:=sma(k,3,1);j:=3*k-2*d;**线:=ema(j,6);cross(**线,50) and **线>ref(**线,1);若还有问题,请q上找我。