{二拼一-选股}a:=(c-ref(c,1))/ref(c,1)*100<-4;b:=barssincen(a,20)+1;d:=c>ref(hhv(o,b),1);var1:=(close/ref(close,1)-1)*100<-4;var2:=barslast(var1);var3:=ref(o,var2);var4:=close>var3 and ref(close,1)<var3;var5:=barslast(var4);v**:=(var2-var5)<=10;xg:var4 and v** and filter(d,10);{已经合并好了,通达信测试通过,2017年1月19日选出9只股票} 20210311
{未来函数,慎用}var11:=zig(3,6)>ref(zig(3,6),1) and ref(zig(3,6),1)<=ref(zig(3,6),2) and ref(zig(3,6),2)<=ref(zig(3,6),3);var13:=zig(3,22)>ref(zig(3,22),1) and ref(zig(3,22),1)<=ref(zig(3,22),...
第一个公式------条件当机构买超过机构卖的10%以上时原码如下:成交额:=v*c/100;机构买:=sum((if(((成交额/8>20) and (close>(ref(close,1)))),成交额,0)),0);机构卖:=sum((if(((成交额/8>20) and (close<(ref(close,1)))),成交额,0)),0);条件a:机构买/机构卖&g...