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(adx,m))/2;mdi>ref(mdi,1) and adx<ref(adx,1) and adxr<ref(adxr,1); 20210311
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...