mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-22 04:28:04 +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:
@@ -16,14 +16,6 @@ The SSF is an Infinite Impulse Response (IIR) filter.
|
||||
- **Butterworth Characteristic**: Maximally flat passband response, minimizing distortion of the trend.
|
||||
- **Minimal Lag**: Despite its smoothing power, it reacts relatively quickly to significant price changes.
|
||||
|
||||
### Zero-Allocation Design
|
||||
|
||||
Our implementation is optimized for high-frequency trading.
|
||||
|
||||
- **State**: Tracks only the previous two SSF values (`SSF[1]`, `SSF[2]`).
|
||||
- **O(1) Complexity**: Constant time update regardless of period.
|
||||
- **No Buffers**: Uses a compact state struct, no heap allocations in the hot path.
|
||||
|
||||
## Mathematical Foundation
|
||||
|
||||
The filter coefficients are derived from the desired cutoff period:
|
||||
|
||||
Reference in New Issue
Block a user