mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-16 09:38:05 +00:00
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:
@@ -1,5 +1,7 @@
|
||||
# ABERR: Aberration Bands
|
||||
|
||||
> *Aberration measures the distance between price and its smoothed self — when the gap grows extreme, reversion whispers.*
|
||||
|
||||
| Property | Value |
|
||||
| ---------------- | -------------------------------- |
|
||||
| **Category** | Channel |
|
||||
@@ -73,23 +75,6 @@ $$\text{MAD} = \sigma \sqrt{\frac{2}{\pi}} \approx 0.7979\,\sigma$$
|
||||
|
||||
Therefore ABERR with $k = 2.0$ captures approximately the same range as Bollinger Bands with $k \approx 1.596$.
|
||||
|
||||
### Pseudo-code
|
||||
|
||||
```
|
||||
function ABERR(source, ma_line, period, multiplier):
|
||||
// Deviation from center line
|
||||
deviation = |source - ma_line|
|
||||
|
||||
// Average absolute deviation (SMA of deviations)
|
||||
avg_dev = SMA(deviation, period)
|
||||
|
||||
// Band construction
|
||||
upper = ma_line + multiplier * avg_dev
|
||||
lower = ma_line - multiplier * avg_dev
|
||||
|
||||
return [upper, lower, avg_dev]
|
||||
```
|
||||
|
||||
### Output Interpretation
|
||||
|
||||
| Output | Description |
|
||||
|
||||
Reference in New Issue
Block a user