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** | [ui.pine](ui.pine) |
- Ulcer Index (UI) is a downside volatility measure that quantifies the depth and duration of drawdowns from recent highs.
- Parameterized by `period` (default 14).
- Output range: $\geq 0$.
- Requires `period` bars of warmup before first valid output (IsHot = true).
- **Similar:** [HV](../hv/hv.md) | **Complementary:** Martin ratio | **Trading note:** Ulcer Index; measures drawdown depth and duration.
- Validated against TA-Lib, Skender, and Tulip reference implementations where available.
Ulcer Index (UI) is a downside volatility measure that quantifies the depth and duration of drawdowns from recent highs. Developed by Peter G. Martin in 1987, UI captures what most volatility measures miss: the pain of being underwater. Unlike standard deviation or ATR that treat upside and downside moves equally, UI measures only the decline from peaks—the psychological stress that keeps investors awake at night.
@@ -263,4 +261,4 @@ Strategy B is better risk-adjusted despite lower returns
- Martin, P. G., & McCann, B. B. (1989). *The Investor's Guide to Fidelity Funds*. John Wiley & Sons.
- Martin, P. G. (1987). "Ulcer Index, An Alternative Approach to the Measurement of Investment Risk & Risk-Adjusted Performance."
- Kaufman, P. J. (2013). *Trading Systems and Methods* (5th ed.). Wiley.
- Kaufman, P. J. (2013). *Trading Systems and Methods* (5th ed.). Wiley.