doc headers

This commit is contained in:
Miha Kralj
2026-02-27 07:48:12 -08:00
parent 8a1ba95173
commit 4ab3a7fb53
389 changed files with 6682 additions and 468 deletions
+18 -1
View File
@@ -1,5 +1,22 @@
# YZVAMA: Yang-Zhang Volatility Adjusted Moving Average
| Property | Value |
| ---------------- | -------------------------------- |
| **Category** | Trend (IIR MA) |
| **Inputs** | OHLCV bar (TBar) |
| **Parameters** | `yzvShortPeriod` (default 3), `yzvLongPeriod` (default 50), `percentileLookback` (default 100), `minLength` (default 5), `maxLength` (default 100) |
| **Outputs** | Single series (Yzvama) |
| **Output range** | Tracks input |
| **Warmup** | 1 bar |
### TL;DR
- Most adaptive moving averages measure volatility using close-to-close changes (standard deviation) or high-low ranges (ATR).
- Parameterized by `yzvshortperiod` (default 3), `yzvlongperiod` (default 50), `percentilelookback` (default 100), `minlength` (default 5), `maxlength` (default 100).
- Output range: Tracks input.
- Requires 1 bar of warmup before first valid output (IsHot = true).
- Validated against TA-Lib, Skender, and Tulip reference implementations where available.
> "ATR tells you how much the market moved. Yang-Zhang tells you how much it *should* have moved given the gaps and intrabar action. YZVAMA uses that distinction to know when the market is lying about its volatility."
## The Core Insight
@@ -411,4 +428,4 @@ Percentile ranking solves both:
- Yang, D., & Zhang, Q. (2000). "Drift-Independent Volatility Estimation Based on High, Low, Open, and Close Prices." *Journal of Business*, 73(3), 477-491.
- Rogers, L.C.G., & Satchell, S.E. (1991). "Estimating Variance from High, Low and Closing Prices." *Annals of Applied Probability*, 1(4), 504-512.
- PineScript reference implementation: `yzvama.pine`
- PineScript reference implementation: `yzvama.pine`