n:=14;m:=6;tr:=sum(max(max(high-low,abs(high-ref(close,1))),abs(low-ref(close,1))),n);hd:=high-ref(high,1);ld:=ref(low,1)-low;dmp:=sum(if(hd>0 and hd>ld,hd,0),n);dmm:=sum(if(ld>0 and ld>hd,ld,0),n);pdi:dmp*100/tr;mdi:dmm*100/tr;adx:ma(abs(mdi-pdi)/(mdi+pdi)*100,m);adxr:(adx+ref... 20210311
a:=(close-ref(close,1))/ref(close,1);b:=(ref(close,1)-ref(close,2))/ref(close,2);d:=(ref(close,2)-ref(close,3))/ref(close,3);any(a>0.099 and b<-0.099 and d>0.099, 0);{参数0可以修改}验证了下300天内只有如意