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
+16 -1
View File
@@ -32,9 +32,24 @@ $$ TRIMA = SMA(SMA(Price, P_1), P_2) $$
## Performance Profile
| Metric | Score | Notes |
| :--- | :--- | :--- |
| **Throughput** | 10 | High; O(1) calculation via cascaded SMAs. |
| **Allocations** | 0 | Zero-allocation in hot paths. |
| **Complexity** | O(1) | Constant time regardless of period. |
| **Accuracy** | 10 | Matches TA-Lib exactly. |
| **Timeliness** | 2 | Significant lag; double smoothing delays signals. |
| **Overshoot** | 0 | Never overshoots the input data range. |
| **Smoothness** | 9 | Very smooth; triangular weighting suppresses noise. |
## Validation
Validated against TA-Lib (`TA_TRIMA`) and Skender.Stock.Indicators.
| Library | Status | Notes |
| :--- | :--- | :--- |
| **TA-Lib** | ✅ | Matches `TA_TRIMA` exactly. |
| **Skender** | ✅ | Matches composite `SMA(SMA)` logic. |
| **Tulip** | ✅ | Matches `trima` exactly. |
| **Ooples** | N/A | Not implemented. |
### Common Pitfalls