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...
v1:=ema(close,60)-ema(close,300);v2:=ema(v1,300);v3:=(close-llv(low,8))/(hhv(high,8)-llv(low,8))*100;v4:=sma(v3,2,1);v5:=sma(v4,2,1);v6:=close/ref(close,3)>=1.1;v7:=backset(v6,3);买入:if((v7 and coun...
含有典型的未来函数zig,会造成信号漂移,谨慎使用。选股代码如下:varc:=(zig(3,5)>ref(zig(3,5),1)) and (ref(zig(3,5),1)<=ref(zig(3,5),2)) and (ref(zig (3,5),2)<=ref(zig(3,5),3)); vard:=(zig(3,5)<ref(zig(3,5),1)) and (ref(...
lc:=ref((o+h+l+2*c)/5,1);rsi:=sma(max(c-lc,0),7,1)/sma(abs(c-lc),7,1)*10; 买:cross(rsi,7.1) and ma(v,5)>ma(v,10);公式已经测试通过,选股正常。股票公式专家团为你解答,希望能帮到你,祝投资顺利。