Directional Movement Index (DMI)

The Directional Movement Index (DMI) is a technical indicator developed by J. Welles Wilder as part of his book “New Concepts in Technical Trading Systems,” published in 1978. The DMI assesses the strength of a price trend and helps traders distinguish between trending and non-trending conditions. It serves as a tool for both trend-following and filtering out market noise, thus aiding in more informed decision-making in financial markets.

Components of DMI

The DMI consists of three main components:

  1. Plus Directional Indicator (+DI): This indicator measures upward movement or the strength of positive price changes. It captures the largest part of daily high movements over a specified period.
  2. Minus Directional Indicator (-DI): This element captures downward price movements and shows the strength of negative price changes, considering the largest part of daily low movements over a specified period.
  3. Average Directional Index (ADX): This component specifies the overall strength of the trend, regardless of its direction. The ADX is derived from the smoothed averages of the difference between +DI and -DI.

Calculating DMI

To understand the DMI components, we must first calculate the True Range (TR), Plus Directional Movement (+DM), and Minus Directional Movement (-DM).

  1. True Range (TR): The maximum range of price movement for a given period, which is derived as follows:
    • ( TR = \max[(Hight - Lowt), Hight - Closet-1 , Lowt - Closet-1 ] )
  2. Plus Directional Movement (+DM): Only the positive part of price movement between the current and previous periods:
    • If ( Hight - High_{t-1} > Low_{t-1} - Lowt ) and ( Hight - High_{t-1} > 0 ), then ( +DM = Hight - High_{t-1} ); otherwise, ( +DM = 0 )
  3. Minus Directional Movement (-DM): The negative part of price movement between the current and previous periods:
    • If ( Low_{t-1} - Lowt > Hight - High_{t-1} ) and ( Low_{t-1} - Lowt > 0 ), then ( -DM = Low_{t-1} - Lowt ); otherwise, ( -DM = 0 )

The smoothed averages of +DM and -DM over a specified period (commonly 14 days) are then calculated to get the Plus and Minus Directional Indicators:

Where SMMA refers to the smoothed moving average. The ADX is then computed as the smoothed average of the Directional Movement Index (DX):

Interpreting DMI

Trend Strength

The ADX value represents the overall trend strength on a scale from 0 to 100:

Directional Indicators

Crossovers

Crossover points between +DI and -DI are particularly significant:

DMI in Algorithmic Trading

Algorithmic trading systems often incorporate DMI as part of complex trading algorithms. DMI offers clear quantitative criteria, enabling trading systems to automatically generate buy or sell signals. By integrating DMI with other indicators like Moving Average Convergence Divergence (MACD), Relative Strength Index (RSI), or Bollinger Bands, algorithms can enhance decision-making accuracy and potentially improve profitability.

Here are a couple of use cases of the Directional Movement Index in algorithmic trading:

Use Case 1: Trend Following Systems

A trend-following algo might use ADX to confirm the existence of a trend. The system might:

Use Case 2: Range-Bound Market Filtering

Another use case is a range-bound or sideways market filtering:

Several algorithmic trading platforms and providers incorporate DMI in their strategies. Some notable ones include:

Conclusion

The Directional Movement Index (DMI) is a powerful tool in the arsenal of both manual and algorithmic traders. Its ability to quantify trend strength and deliver clear buy and sell signals makes it invaluable for crafting sophisticated trading strategies. When used in conjunction with other technical indicators, DMI offers enriched insights and robust trading opportunities, further emphasizing its enduring significance in the world of financial markets.