a:=(c/ma(c,20)-1)*100;xg:ma(c,20)>ref(ma(c,20),1)and a<ref(a,1) and a>1 and a<3 and l>ma(c,20) and ref(l>ma(c,20),1)and ma(c,2)<ref(ma(c,2),1)and ref(ma(c,2),1)<ref(ma(c,2),2); 20210311
(max(ma(c,60),ma(c,120))-min(ma(c,60),ma(c,120)))/max(ma(c,60),ma(c,120))<0.025 and ma(c,120)>=ref(hhv(ma(c,120),20),1) and c>ma(c,20) and c<ref(c,1)*1.05 and count(cross(ma(c,20),ma(c,60)...
因为这几个条件一般不会同时满足,你的原意应该 是在一指定的天数n内达到这些条件。因此我在公式中给你加了一个参数n,你试试。 ma5:=ma(c,5);ma10:=ma(c,10);ma30:=ma(c,30);ma130:=ma(c,130);xg:count(cross(ma5,ma10),n)>0 and count(cross(ma5,ma30),n)>0 and count(c...