http://www.tangotools.com/ui/ui.htm
The Ulcer Index by Peter Martin is a measure of downside volatility. For a given N-day period the closing prices are considered from oldest to newest and for each close a retracement percentage is calculated, relative to the highest close so far.
price[i] - maxprice so far R[i] = -------------------------- maxprice so far
So for instance a price $5.00 falling back to $4.50 is a -10% retracement. These are averaged with a quadratic mean, which has the effect of emphasising large drawdowns, but incorporating all into the result.
/ R[1]^2 + R[2]^2 + ... + R[N]^2 \ Ulcer = sqrt | ------------------------------ | \ N /
The index can be calculated over the kind of period one might hold an investment to calculate a measure of the ulcer-producing drawdowns suffered during that period.
Copyright 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2014, 2015, 2016, 2017, 2019, 2023, 2024 Kevin Ryde
Chart is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.