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
-8
View File
@@ -17,14 +17,6 @@ DWMA applies a linear weight kernel (triangle window) twice.
The effective window size is roughly $2 \times \text{Period}$, and the lag is cumulative. This is not for high-frequency scalping; this is for determining if the market is actually bullish or just having a manic episode.
### Zero-Allocation Design
Our implementation composes two `Wma` instances.
- **Composition**: We wrap two `Wma` objects.
- **Efficiency**: Since `Wma` is O(1) (using a running sum algorithm), DWMA is also O(1).
- **Memory**: No massive arrays are allocated; just the internal buffers of the two WMAs.
## Mathematical Foundation
$$ \text{WMA}_1 = \text{WMA}(P, N) $$