feat(dynamics): add PlusDI, MinusDI, PlusDM, MinusDM indicators

Complete thin Dx-composition wrapper indicators with full test coverage:

- PlusDi/MinusDi: Directional Indicator wrappers (DiPlus/DiMinus from Dx)
- PlusDm/MinusDm: Directional Movement wrappers (DmPlus/DmMinus from Dx)
- Individual validation tests per indicator directory (TALib, Skender, bounds)
- Combined unit tests (DiDm.Tests.cs) and validation tests (DiDm.Validation.Tests.cs)
- Quantower wrappers + tests for all 4 indicators
- PineScript v6 implementations with compensated RMA
- Normalized .md documentation for all indicators and categories
- 182 tests passing, 0 failures
This commit is contained in:
Miha Kralj
2026-03-11 20:21:52 -07:00
parent 56b86bebfb
commit 33d20f2a18
437 changed files with 4589 additions and 2792 deletions
+2 -23
View File
@@ -1,5 +1,7 @@
# DCHANNEL: Donchian Channels
> *The highest high and lowest low over a window — Donchian's simplicity captures breakout potential in two lines.*
| Property | Value |
| ---------------- | -------------------------------- |
| **Category** | Channel |
@@ -63,29 +65,6 @@ The bands stay flat until either a new extreme occurs or the old extreme exits t
|-----------|-------------|---------|------------|
| `period` | Lookback window for high/low extremes ($n$) | 20 | $> 0$ |
### Pseudo-code
```
function DCHANNEL(high, low, period):
validate: period > 0
// Monotonic deque for max (upper band)
while max_deque.front is outside window: pop front
while max_deque.back value ≤ high: pop back
push high to max_deque back
upper = max_deque.front value
// Monotonic deque for min (lower band)
while min_deque.front is outside window: pop front
while min_deque.back value ≥ low: pop back
push low to min_deque back
lower = min_deque.front value
middle = (upper + lower) / 2
return [middle, upper, lower]
```
### Output Interpretation
| Output | Description |