ma30:=ma(close,30);ma60:=ma(close,60);value_a:=filterx(cross(ma30,ma60),barscount(close));value_b:=cross(macd.dir,macd.dea) and macd.macd>=0;value:barssince(barslast(value_a)>o and value_b)=0;
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);公式已经测试通过,选股正常。股票公式专家团为你解答,希望能帮到你,祝投资顺利。