Merge branch 'dev'

This commit is contained in:
Miha Kralj
2026-03-13 13:47:10 -07:00
404 changed files with 2754 additions and 1763 deletions
+2 -4
View File
@@ -13,9 +13,7 @@
| **PineScript** | [ewma.pine](ewma.pine) |
- EWMA Volatility calculates market volatility using an exponentially weighted moving average of squared log returns with bias correction.
- Parameterized by `period` (default 20), `annualize` (default true), `annualperiods` (default 252).
- Output range: $\geq 0$.
- Requires `period` bars of warmup before first valid output (IsHot = true).
- **Similar:** [HV](../hv/hv.md), [ATR](../atr/atr.md) | **Complementary:** Risk management | **Trading note:** Exponentially-Weighted Moving Average volatility; RiskMetrics standard.
- Validated against TA-Lib, Skender, and Tulip reference implementations where available.
EWMA Volatility calculates market volatility using an exponentially weighted moving average of squared log returns with bias correction. Unlike simple historical volatility that weights all observations equally, EWMA gives more weight to recent observations while still considering historical data, making it more responsive to current market conditions.
@@ -181,4 +179,4 @@ Note: This implementation is based on the PineScript reference at `ewma.pine`. T
- J.P. Morgan/Reuters. (1996). "RiskMetrics Technical Document." Fourth Edition.
- Bollerslev, T. (1986). "Generalized Autoregressive Conditional Heteroskedasticity." Journal of Econometrics.
- Hull, J. (2018). "Options, Futures, and Other Derivatives." Chapter on Volatility Estimation.
- Hull, J. (2018). "Options, Futures, and Other Derivatives." Chapter on Volatility Estimation.