Ulcer and Pain Index and Ratios

Ulcer Index and Ulcer Performance Index (Martin Ratio)

You are now following this Submission

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

Cite As

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

Categories

Find more on Financial Toolbox in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.11.0.0

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.

1.1.0.0

Revised the title

1.0.0.0