如何用dmi指标选股?
dmi指标的确难掌握,这是我常用的金叉公式,试试吧,有新构思请多的发贴讨论:{dmi}mtr:=expmema(max(max(high-low,abs(high-ref(close,1))),abs(ref(close,1)-low)),14);hd :=high-ref(high,1);ld :=ref(low,1)-low;dmp:=expmema(if(hd>0&&hd>ld,hd,0),14);dmm:=expmema(if(ld>0&&ld>hd,ld,0),14);pdi: =dmp*100/mtr;mdi: =dmm*100/mtr;tj:cross(pdi,mdi) and pdi<40 ; 20210311