Enhance documentation and validation for various indicators

This commit is contained in:
Miha Kralj
2025-12-22 20:42:26 -08:00
parent 5bb8c122c0
commit 4efa0e773e
81 changed files with 4267 additions and 640 deletions
+9 -4
View File
@@ -31,7 +31,8 @@ This is one of the fastest adaptive indicators available.
| Metric | Score | Notes |
| :--- | :--- | :--- |
| **Throughput** | High | Scalar math |
| **Throughput** | [N] ns/bar | Scalar math |
| **Allocations** | 0 | Stack-based calculations only |
| **Complexity** | O(1) | Constant time update |
| **Accuracy** | 9/10 | Hugs price closely without breaking |
| **Timeliness** | 8/10 | Accelerates to catch up to price |
@@ -40,12 +41,16 @@ This is one of the fastest adaptive indicators available.
## Validation
Validated against standard definitions and TradingView implementations.
Validated against Skender and Ooples.
| Provider | Error Tolerance | Notes |
| Library | Status | Notes |
| :--- | :--- | :--- |
| **TradingView** | $10^{-9}$ | Matches `mcginley` |
| **QuanTAlib** | ✅ | Validated. |
| **Skender** | ✅ | Matches `GetDynamic` |
| **Ooples** | ✅ | Matches `CalculateMcGinleyDynamicIndicator` |
| **TA-Lib** | N/A | Not implemented |
| **Tulip** | N/A | Not implemented. |
### Common Pitfalls
1. **Not an EMA**: Do not treat it like an EMA. It does not have a fixed alpha.