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
+1 -4
View File
@@ -53,10 +53,6 @@ The USF is designed for high performance and low latency.
| **Overshoot** | 8/10 | Can overshoot on sharp turns |
| **Smoothness** | 9/10 | Filters high frequencies effectively |
### Zero-Allocation Design
The implementation uses a circular buffer or state variables to store the necessary history (2 previous inputs and 2 previous outputs), ensuring that no heap allocations occur during the `Update` cycle. This makes it suitable for high-frequency trading applications.
## Validation
The USF implementation has been verified against the EasyLanguage code provided in the original article. Since no external library validation is available (as noted in the task), the implementation relies on the mathematical correctness of the formula derived from the source material.
@@ -81,3 +77,4 @@ Console.WriteLine($"Current USF: {usf.Last.Value}");
// Use in a TSeries chain
var source = new TSeries();
var usfSeries = new Usf(source, 20);