Directional Movement Index (DMI)

StratCraft indicator page for DMI.

Route: /indicators/dmi/

What It Does

DMI compares directional movement to determine whether upward or downward trend pressure is stronger.

Formula

DMI compares positive and negative directional movement components over a lookback period.

Parameters

  • period - default 14
  • movav - default SmoothedMovingAverage

C++23 API

#include <nonabt/indicators/dmi.hpp>
auto dmi = std::make_unique<nonabt::DMI>(data(), 14, "SmoothedMovingAverage");

Common Usage

  • Use DMI as a trend direction filter.
  • Pair it with ADX for trend strength.
  • Useful in breakout and trend-following systems.

Practical Pattern

When positive directional movement dominates, the system tends to favor long-side confirmation.