Refactor documentation to remove "Zero-Allocation Design" sections across various trend indicators and implement a PowerShell script for automated cleanup

- Updated mathematical foundations and performance profiles where necessary to maintain clarity and coherence.
This commit is contained in:
Miha Kralj
2025-12-21 14:37:44 -08:00
parent 54c309e5cf
commit a7b7207801
65 changed files with 1766 additions and 482 deletions
-13
View File
@@ -38,19 +38,6 @@ $$ SuperTrend = \begin{cases} Lower_{final} & \text{if Bullish} \\ Upper_{final}
## Performance Profile
### Zero-Allocation Design
The `Super` class maintains its state in a `struct`, ensuring zero heap allocations during the `Update` cycle. The ATR calculation is embedded to avoid the overhead of a separate object.
| Metric | Score | Notes |
| :--- | :--- | :--- |
| **Throughput** | High | O(1) updates |
| **Complexity** | O(1) | Constant time update |
| **Accuracy** | 8/10 | Excellent trend direction filter |
| **Timeliness** | 7/10 | Lags due to ATR component |
| **Overshoot** | 9/10 | Very stable, resists whipsaws |
| **Smoothness** | 8/10 | Step-function output filters noise |
## Validation
Validated against Skender.Stock.Indicators and Pandas-TA.