Directional Movement (DM)
StratCraft indicator page for DM.
Route: /indicators/dm/
What It Does
DM isolates directional movement from bar to bar. It is a core building block for DI and ADX calculations.
Formula
DM compares current highs and lows to the prior bar to measure directional change.
Parameters
period- default14movav- defaultSmoothedMovingAverage
C++23 API
#include <nonabt/indicators/dm.hpp>
auto dm = std::make_unique<nonabt::DM>(data(), 14, "SmoothedMovingAverage");
Common Usage
- Use DM as a directional input feature.
- Combine with smoothed range measures.
- Helps build trend strength indicators.
Practical Pattern
Positive directional movement usually reflects higher highs; negative directional movement reflects lower lows.
