Files
QuanTAlib/lib/dynamics/minusdi/MinusDi.md
T
Miha Kralj 19f956521d docs: add PineScript links to all indicator .md files, docsify .pine renderer with comprehensive Prism v6 syntax highlighting
- Added PineScript row to property tables in 375 .md files linking to companion .pine files
- Docsify plugin intercepts .pine link clicks, fetches and renders content as syntax-highlighted code blocks
- Comprehensive Prism.languages.pine grammar covering 18 token categories: annotations, types, qualifiers, namespaces, OHLCV builtins, functions, keywords, operators
- Custom CSS tokens using GitHub dark palette for Pine-specific visual differentiation
2026-03-11 15:36:23 -07:00

1.3 KiB
Raw Blame History

MINUS_DI: Minus Directional Indicator

Measures downward directional movement strength as a percentage (0-100).

Introduction

The Minus Directional Indicator (-DI) measures the strength of downward price movement relative to the true range. It is one of the components of the Directional Movement System developed by J. Welles Wilder Jr.

When -DI is rising, downward price pressure is increasing. When -DI crosses above +DI, it signals a potential bearish trend. The -DI line is commonly plotted alongside +DI to visualize directional balance.

Calculation

-DI = Smoothed(-DM) / Smoothed(TR) × 100

Where:

  • -DM (Minus Directional Movement) = max(PrevLow - Low, 0) when PrevLow - Low > High - PrevHigh, else 0
  • TR (True Range) = max(High - Low, |High - PrevClose|, |Low - PrevClose|)
  • Smoothing uses Wilder's method: Smooth = Smooth - Smooth/N + Input

Parameters

Parameter Default Range Description
Period 14 2-∞ Wilder smoothing period

Interpretation

  • Rising -DI: Strengthening downward movement
  • -DI > +DI: Bears dominate; potential downtrend
  • -DI crossover above +DI: Bearish signal
  • High -DI (>40): Strong downward momentum

References

  • Wilder, J. Welles Jr. "New Concepts in Technical Trading Systems" (1978)