你要求的要全部,几乎选股票。略加修改,看在你的要内。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;
a:=if(ref(close,1)>ref(open,1),close,open);b:=close>a;{//当前收盘价站上前一日实体)c:=max(ref(vol,1),ref(vol,2),ref(vol,3);{//最近3日的成交量最大值}result:if((b and vol>c),1,0);{返回1为符合,0为不符合}