Skip to content
13

Ulcer Index

PortfolioOptimisers.UlcerIndex Type
julia
struct UlcerIndex{__T_settings} <: RiskMeasure

Represents the Ulcer Index risk measure.

UlcerIndex measures the depth and duration of drawdowns in portfolio returns. It is defined as the root-mean-square of the absolute drawdown series, capturing both the magnitude and persistence of losses.

Mathematical Definition

Define the absolute drawdown series:

ct=s=1txs,dt=ctmax0stcs0.

The Ulcer Index is:

UI(x)=1Tt=1Tdt2=d2T.

Fields

  • settings: Risk measure configuration.

Constructors

julia
UlcerIndex(;
    settings::RiskMeasureSettings = RiskMeasureSettings()
) -> UlcerIndex

Keywords correspond to the struct's fields.

Functor

julia
(r::UlcerIndex)(x::VecNum)

Computes the Ulcer Index of a portfolio returns vector x.

Arguments

  • x::VecNum: Portfolio returns vector.

Examples

julia
julia> UlcerIndex()
UlcerIndex
  settings ┼ RiskMeasureSettings
           │   scale ┼ Float64: 1.0
           │      ub ┼ nothing
           │     rke ┴ Bool: true

Related

source
PortfolioOptimisers.RelativeUlcerIndex Type
julia
struct RelativeUlcerIndex{__T_settings} <: HierarchicalRiskMeasure

Represents the Relative Ulcer Index risk measure for hierarchical optimisation.

RelativeUlcerIndex applies the Ulcer Index framework to the relative (compounded) drawdown series.

Mathematical Definition

Define the relative drawdown series:

Ct=s=1t(1+xs),rdt=Ctmax0stCs10.

The Relative Ulcer Index is:

RUI(x)=rd2T.

Fields

  • settings: Hierarchical risk measure configuration.

Constructors

julia
RelativeUlcerIndex(;
    settings::HierarchicalRiskMeasureSettings = HierarchicalRiskMeasureSettings()
) -> RelativeUlcerIndex

Keywords correspond to the struct's fields.

Functor

julia
(r::RelativeUlcerIndex)(x::VecNum)

Computes the Relative Ulcer Index of a portfolio returns vector x.

Arguments

  • x::VecNum: Portfolio returns vector.

Examples

julia
julia> RelativeUlcerIndex()
RelativeUlcerIndex
  settings ┼ HierarchicalRiskMeasureSettings
           │   scale ┴ Float64: 1.0

Related

source