l0:=const(l);t0:=ref(barslast(currbarscount<=200 and (abs(l-l0)=0 or abs(h-l0)=0 or abs(o-l0)=0 or abs(c-l0)=0)),1)+1;xg:currbarscount=const(t0)+1;公式已经测试,选股正常。股票公式专家团为你解答,希望能帮到你,祝投资顺利。
参数 n 2 100 11 m 2 100 6cv:=close;bbiboll:=(ma(cv,3)+ma(cv,6)+ma(cv,12)+ma(cv,24))/4;upr:=bbiboll+m*std(bbiboll,n);dwn:=bbiboll-m*std(bbiboll,n);xg:c<dwn;