通达信的:n:=14;m:=6;mtr:= 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/mtr;mdi:=dmm*100/mtr;adx:=ma(abs(mdi-pdi)/(mdi+pdi)*100,m);adxr:=(adx+ref(adx,m))/2;xg:pdi>adx and pdi>adxr and pdi>30 and pdi>ref(pdi,1) and mdi<15 and mdi<ref(mdi,1) and mdi<adx and mdi<adxr and cross(adx,adxr); 测试通过!提示:不能用通达信自带的dmi指标进行验证!希望能够帮助你! 20210311
v2v:=v/ref(v,1)>=1.9 and c>ref(c,1);{金黄色} stickline(v2v,h,l,0,0),coloryellow;stickline(v2v,o,c,3.1,0),color0033ff;stickline(v2v,o,c,2.1,0),color0077ff;...