N:=28;M:=22;
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);
+DI: DMP*100/TR;
-DI: DMM*100/TR;
ADX: MA(ABS(-DI-+DI)/(-DI++DI)*100,M);
ADXR:(ADX+REF(ADX,M))/2;
STICKLINE(+DI>-DI,+DI,-DI,1,1),colormagenta;
STICKLINE(+DI-DI) AND (REF(ADX,1)
【股票入门与技巧】【同花顺】DMI印象指标公式
特别声明:文章内容仅供参考,不造成任何投资建议。投资者据此操作,风险自担。