这是不含当天收盘价的,即t-1,t-2,t-3,112只符合条件(hhv(h,3)-llv(low,3))/ref(close,3)*100<5 and abs((close-ref(close,3))/ref(close,3))*100<1.5;这是含当天收盘价的,即t,t-1,t-2,可以盘中选股,1只符合条件(hhv(h,3)-llv(low,3))/ref(close,3...
你要求的要全部,几乎选股票。略加修改,看在你的要内。v1:=ma(v,5);v2:=ma(c,60);a1:=c>ref(c,1)*1.099;a2:=barslast(a1);a3:=every(v<ref(v,1),3);b1:=v1>v2;xg:a2=4 and a3 and b1 and c<o;