Directional Indicator (DI)

StratCraft indicator page for DI.

Route: /indicators/di/

What It Does

DI measures directional movement over time and is used as part of trend-strength analysis.

Formula

DI is computed from smoothed directional movement and true range relationships.

Parameters

  • period - default 14
  • movav - default SmoothedMovingAverage

C++23 API

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

Common Usage

  • Use DI as part of trend-strength filtering.
  • Combine it with its opposite directional line.
  • Useful in DMI and ADX-style systems.

Practical Pattern

Rising DI values can indicate stronger directional pressure in the current trend.