[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"indicator-dm-en":3},"# Directional Movement (DM)\n\n> StratCraft indicator page for DM.\n\n**Route**: `\u002Findicators\u002Fdm\u002F`\n\n## What It Does\n\nDM isolates directional movement from bar to bar. It is a core building block for DI and ADX calculations.\n\n## Formula\n\nDM compares current highs and lows to the prior bar to measure directional change.\n\n## Parameters\n\n- `period` - default `14`\n- `movav` - default `SmoothedMovingAverage`\n\n## C++23 API\n\n```cpp\n#include \u003Cnonabt\u002Findicators\u002Fdm.hpp>\nauto dm = std::make_unique\u003Cnonabt::DM>(data(), 14, \"SmoothedMovingAverage\");\n```\n\n## Common Usage\n\n- Use DM as a directional input feature.\n- Combine with smoothed range measures.\n- Helps build trend strength indicators.\n\n## Practical Pattern\n\nPositive directional movement usually reflects higher highs; negative directional movement reflects lower lows.\n"]