apaTradeProfile.CDaR(Weights, Returns, ConfidenceLevel, StepSize, nSteps, IsTraditional, IsSmooth)
=apaTradeProfile.CDaR(Weights, Returns, ConfidenceLevel, StepSize, nSteps, IsTraditional, IsSmooth)Result
Calculates the so-called “trade profile” of portfolio conditional drawdown at risk (CDaR), i.e. how +/- changes in the constituent exposures affect the portfolio CDaR.
Syntax
Weights: 1 x n vector of constituent exposures
Returns: m x n matrix of constituent returns (m = nObs, n = nAssets)
ConfidenceLevel: confidence level for CDaR, e.g. 95%
StepSize: size of exposure changes
nSteps: number of exposure changes
IsTraditional: TRUE to set the results of trades resulting in short (< 0) or leveraged (> 1) constituent exposures to #N/A
IsSmooth: TRUE to calculate smooth CDaR (tail <= DaR), FALSE for the usual calculation (tail < DaR)
Remarks
For more information on the IsSmooth parameter, see apaCDaR.Empirical.
