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);起个名字,保存成条件选股公式就可以了。(如果对您有帮助请采纳答案谢谢)
rsv:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100;k:=sma(rsv,3,1);d:=sma(k,3,1);j:=3*k-2*d;jj:=cross(k,d) and k<50;xx:jj and ma(c,30)>ma(c,60) and ma(c,60)>ref(ma(c,60),1);希望能够帮助您。顺祝马年投资顺利...
v11:=3*sma((c-llv(l,55))/(hhv(h,55)-llv(l,55))*100,5,1)-2*sma(sma((c-llv(l,55))/(hhv(h,55)-llv(l,55))*100,5,1),3,1);趋势线:=ema(v11,3);v12:=(趋势线-ref(趋势线,1))/ref(趋势线,1)*100;xg:趋势线<=13 and v12>13;