mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-26 06:18: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 @@
|
||||
# ALAGUERRE: Ehlers Adaptive Laguerre Filter
|
||||
|
||||
> *The best filter is one that knows when to listen closely and when to smooth aggressively.*
|
||||
|
||||
| Property | Value |
|
||||
| ---------------- | -------------------------------- |
|
||||
| **Category** | Filter |
|
||||
@@ -17,8 +19,6 @@
|
||||
- Requires `max(4, length)` bars of warmup before first valid output (IsHot = true).
|
||||
- Validated against TA-Lib, Skender, and Tulip reference implementations where available.
|
||||
|
||||
> "The best filter is one that knows when to listen closely and when to smooth aggressively." -- John F. Ehlers (paraphrased)
|
||||
|
||||
## Introduction
|
||||
|
||||
The Adaptive Laguerre Filter extends Ehlers' four-element all-pass cascade by replacing the fixed damping factor with a per-bar adaptive alpha derived from tracking-error normalization. When price diverges from the filter output (trending conditions), alpha increases toward 1 for faster tracking. When price stays near the filter output (ranging conditions), alpha decreases toward 0 for heavier smoothing. The adaptation mechanism uses a highest/lowest normalization of the absolute tracking error over a lookback window, followed by median smoothing to prevent whipsaw in the coefficient.
|
||||
|
||||
Reference in New Issue
Block a user