[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"indicator-dmi-en":3},"# Directional Movement Index (DMI)\n\n> StratCraft indicator page for DMI.\n\n**Route**: `\u002Findicators\u002Fdmi\u002F`\n\n## What It Does\n\nDMI compares directional movement to determine whether upward or downward trend pressure is stronger.\n\n## Formula\n\nDMI compares positive and negative directional movement components over a lookback period.\n\n## Parameters\n\n- `period` - default `14`\n- `movav` - default `SmoothedMovingAverage`\n\n## C++23 API\n\n```cpp\n#include \u003Cnonabt\u002Findicators\u002Fdmi.hpp>\nauto dmi = std::make_unique\u003Cnonabt::DMI>(data(), 14, \"SmoothedMovingAverage\");\n```\n\n## Common Usage\n\n- Use DMI as a trend direction filter.\n- Pair it with ADX for trend strength.\n- Useful in breakout and trend-following systems.\n\n## Practical Pattern\n\nWhen positive directional movement dominates, the system tends to favor long-side confirmation.\n"]