mtr:=expmema(max(max(high-low,abs(high-ref(close,1))),abs(ref(close,1)-low)),14);hd :=high-ref(high,1);ld :=ref(low,1)-low;dmp:=expmema(if(hd>0&&hd>ld,hd,0),14);dmm:=expmema(if(ld>0&&ld>hd,ld,0),14);pdi:=dmp*100/mtr;mdi:=dmm*100/mtr;adx:=expmema(abs(mdi-pdi)/(mdi+pdi)*100,6);adxr:=expmema(adx,6);xg:=pdi>mdi and adx>mdi;tj:ref(xg,1)=0 and xg; 20210311
a:=v*100/capital;主力:=ma(a,4);游资:=ma(a,9);大户:=ma(a,17);{zl:主力>0;yz:游资>0;dh:大户>0;一个选股公式只能有一个结果,如果你想要三个结果,刚需要三个公式,在一个公式中全部选出的结果是这样的:} xg:主力>0 or 游资>0 or 大户>0;