mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-24 05:28:05 +00:00
v0.8.6: update indicator docs, ndepend tooling, ALMA refactor, gitignore cleanup
This commit is contained in:
@@ -13,9 +13,7 @@
|
||||
| **PineScript** | [decay.pine](decay.pine) |
|
||||
|
||||
- DECAY (Linear Decay) tracks the maximum of the current input and the previous output minus a fixed absolute step of `1/period`.
|
||||
- Parameterized by `period` (default 5).
|
||||
- Output range: Same as input — this is an overlay indicator.
|
||||
- Requires `1` bar of warmup before first valid output (IsHot = true).
|
||||
- **Similar:** [EDecay](../edecay/Edecay.md) | **Trading note:** Linear decay function; models signal fading over time. Used for recency-weighted calculations.
|
||||
- Validated against Tulip Indicators `ti_decay` reference algorithm.
|
||||
|
||||
DECAY implements the Tulip Indicators `ti_decay` function. When price is above the decayed level, output snaps to price. When price falls below, the output decays linearly at a rate of `1/period` per bar, creating a ceiling that gradually descends. This produces a one-sided envelope that hugs price from above.
|
||||
@@ -149,4 +147,4 @@ reaching zero after $k = v \cdot p$ bars (assuming $v > 0$).
|
||||
## References
|
||||
|
||||
- Tulip Indicators Library: https://tulipindicators.org/decay
|
||||
- Kegel, L. "Tulip Indicators" — Open-source C library of technical indicators.
|
||||
- Kegel, L. "Tulip Indicators" — Open-source C library of technical indicators.
|
||||
Reference in New Issue
Block a user