mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-22 12:38:06 +00:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user