tr:=sum(max(max(high-low,abs(high-ref(close,1))),abs(low-ref(close,1))),14);hd:=high-ref(high,1);ld:=ref(low,1)-low;dmp:=sum(if(hd>0 and hd>ld,hd,0),14);pdi:=dmp*100/tr;count(pdi>ref(pdi,1),n)=n;n是天数。 20210311
ma20:=ma(c,20);ma60:=ma(c,60);a1:=between(c,ma20,ma60);b20:cross(c,ma20) and a1=0;//上穿20均线, 且不在20与60均之间s20:-(cross(ma20,c) and a1)=0;//下穿20均线, 且不在20与60均之间b60:cross(c,ma20) and a1=0;//上穿60均线, 且不在20与60均...
不用改了,有未来,下面的就是varc:=(zig(3,5)>ref(zig(3,5),1)) and (ref(zig(3,5),1)<=ref(zig(3,5),2)) and (ref(zig(3,5),2)<=ref(zig(3,5),3));vard:=(zig(3,5)<ref(zig(3,5),1)) and (ref(zig(3,5),1)>=ref(z...
原码如下,请收好 m5:=(c,5);m10:=(c,10);m20:=(c,20);m30:=(c,30);m60:=(c,60);m120:=(c,120);barslastcount(c>m5 and c>m10 and c>m20 and c>m30 and c>m60 and c>m120)>2;
ref(c,2)/ref(c,3) >1.04 and ref(v,2)/ref(ma(v,5),2) >2 and o>=ref(c,2) and ref(o,1)>=ref(c,2) and between(ref(c,1)/ref(c,2),1,1.02) and between(c/ref(c,1),1,1.02);测试通过,很少有股票满足,去年10月份能找出一些...