Ulcer and Pain Index and Ratios

Ulcer Index and Ulcer Performance Index (Martin Ratio)
Updated 18 Aug 2016

View License

This is the well known ulcer index and associated ulcer performance index, used as performance metrics or sometimes as technical indicators.

Cite As

Matthaeus (2024). Ulcer and Pain Index and Ratios (https://www.mathworks.com/matlabcentral/fileexchange/52348-ulcer-and-pain-index-and-ratios), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Financial Toolbox in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

Changed numerator (return) to CAGR (assumes input bars are 1 biz day), but gross return or mean daily return could also be used. Also added pain index/ratio, which is a similar indicator. Finally, allowed for output of moving indicator.

Revised the title