mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-24 05:28:05 +00:00
Merge branch 'dev'
This commit is contained in:
@@ -13,9 +13,7 @@
|
||||
| **PineScript** | [hpf.pine](hpf.pine) |
|
||||
|
||||
- The 2-Pole Highpass Filter (HPF) is designed to separate high-frequency components (like cycles and noise) from the underlying trend.
|
||||
- Parameterized by `length` (default 40).
|
||||
- Output range: Oscillates around zero (detrended signal).
|
||||
- Requires `length` bars of warmup before first valid output (IsHot = true). Default: **40 bars**.
|
||||
- **Similar:** [HP](../hp/Hp.md), [Roofing](../roofing/Roofing.md) | **Complementary:** SSF for low-pass | **Trading note:** High-pass filter; removes trend, isolates cycles and noise. Ehlers' 1-pole design.
|
||||
- Validated against TA-Lib, Skender, and Tulip reference implementations where available.
|
||||
|
||||
The 2-Pole Highpass Filter (HPF) is designed to separate high-frequency components (like cycles and noise) from the underlying trend. By suppressing low-frequency movements, it acts as a "detrender," making it invaluable for oscillator construction and cycle analysis.
|
||||
@@ -114,4 +112,4 @@ TValue cycle = hpf.Update(new TValue(time, price));
|
||||
// Static batch calculation
|
||||
double[] prices = ...;
|
||||
double[] cycle = new double[prices.Length];
|
||||
Hpf.Calculate(prices, cycle, 40);
|
||||
Hpf.Calculate(prices, cycle, 40);
|
||||
Reference in New Issue
Block a user