Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [performanceanalytics]

R package of Econometric tools for performance and risk analysis.

2
votes
1answer
58 views

portfolio information ratio calculation on daily returns including hedged strategy results interpretation

I am tasked with calculating the portfolio information ratio on ~15 years of daily portfolio returns and I am finding several approaches online which is quite confusing. The first approach simply ...
1
vote
0answers
31 views

Issue with chart.RiskReturnScatter in performance analytics, need finite 'ylim' values error

I am currently trying to create a Risk Return Scatter plot using the following code ...
0
votes
2answers
109 views

r: analyse series of historical positions as portfolio using 'standard' tools

I have a series of historical trading positions in the form Symbol OpenPrice OpenDate InvestmentInDollars CloseDate ReturnInDollars I need to evaluate the ...
0
votes
1answer
65 views

performance attribution - security selection= wB*(Rp-RB) or wP*(Rp-RB)?

Really confused. Finding various different ways of calculating security selection alpha. I believe it matters from whose perspective one is looking at. I am a portfolio manager and I want to know ...
0
votes
1answer
88 views

Return.portfolio function for re-balancing with time series of weights

I am using the Return.portfolio function from the PerformanceAnalytics R package in order to re-balance the portfolio based on different frequencies (i.e. daily, weekly monthly, etc.) using a time ...
1
vote
1answer
87 views

How to correctly use SharpeRatio.annualized function with daily returns and proxy for daily risk free rate

I am not sure if am correctly using SharpeRatio.annualized function. I am passing following parameters (dailyRet, dailyRF, scale = 252), where dailyRet is an XTS type for daily returns, dailyRF is an ...
7
votes
2answers
193 views

Portfolio returns with unequal asset return histories

Using the package PerformanceAnalytics in R, I am trying to calculate the return of an equal-weighted portfolio that contains 30 assets. However, these assets do not have the same starting point in ...
1
vote
1answer
694 views

R returns numeric(0) when putting p=0.995 for calculating VaR

My code actually works just fine. What I don't understand is, if I put p=0.995 instead of 0.95, the console gives me numeric(0). What can cause this error? However, when I use "gaussian" method, it ...
1
vote
2answers
140 views

Downside Market Capture Ratio: compute with sum or product?

I'm computing downside market capture ratio in R. The PerformanceAnalytics R package has a built-in UpDownRatios function which does this, but it computes the ratio using sums of returns, not ...
2
votes
1answer
317 views

R, Performance Analytics, How to chart continuous line with non continuous data?

In R, with Performance analytics package, I am trying to chart multiple cumulative asset returns from an XTS object. The thing is that I miss some data from some asset returns so that the graph given ...
1
vote
1answer
322 views

In R, Performance Analytics package, chart.Drawdown, plot several drawdowns curves on the same plot

Dear Stack Exchange community, Using Performance Analytics package, chart.Drawdown, I would like to plot several drawdowns curves on the same plot to be able to visually compare them. I know how to ...
0
votes
1answer
109 views

Package ‘PerformanceAnalytics’ - Risk-free rate : Trouble using CAPM.beta() function

This is the first time I use the Package ‘PerformanceAnalytics’. I have a problem when it comes to use "Rf" (risk-free rate) when using the CAPM.beta. I use EONIA as a proxy for the risk free-rate. ...
3
votes
0answers
137 views

How to reset indicators in quantstrat / quantmod?

I am currently trying to back test a strategy on a file which contains minutely data for the whole month. I would like to reset my indicators at 3:30 PM . Is there a way I can reset the indicators ...
1
vote
3answers
10k views

What value should the risk free monthly return rate be (Sharpe ratio calculation)?

In calculating an annualized Sharpe ratio using monthly returns, what is commonly used as the value for the risk free rate? I am using this formula: ...
1
vote
0answers
585 views

How to calculate cumulative returns with one lag in R

I have a huge data frame with over 1000 column, which are companies(column headers) and in each column I have their estimated return(monthly). The sample period of the data frame in 11 years. I want ...
0
votes
1answer
262 views

Performance attribution for personal portfolio - weight attribution

i am building a platform for portfolio analytics, part of which is a performance attribution module. Given that most individual portfolio's can never have the same number of stocks as say, a mutual ...
4
votes
1answer
570 views

Return.portfolio error from PerformanceAnalytics package

When using the PerformanceAnalytics package of R, I am getting an error from the Return.portfolio function whenever I ask it to rebalance_on any frequency. If the rebalance parameter is removed, the ...
4
votes
1answer
640 views

Why annualized return and cumultive return aren't equal over 1-year period with Performance Analytics package in R?

I use Performance Analytics package in R to compare annualized and cumulative return of a portfolio. My expectation is that both should be equal over a period of 1-year but results tell me I'm wrong. ...
1
vote
1answer
2k views

Chart Correlation warnings

when I run chart.Correlation I get a series of warnings. I get the identical warnings with chart.Correlation(managers[,1:2],method="pearson") Here is a short sample: ...
1
vote
1answer
211 views

Risk free rate for Performance Analytics

In [R] one can pass either a vector or scalar as the risk free rate. What is better? If I pass a vector to (for example) chart.riskreturnscatter then the sharpe ratio lines disappear. ...
1
vote
1answer
66 views

In theory historical performance of a portfolio

I am looking at the quantitative model our team is using for analyzing the performance of a portfolio of stocks. However I don't understand what the model is trying to achieve. The model is supposed ...
2
votes
1answer
108 views

Market Timing Performance for a single stock

It seems there are models that study the market timing ability of funds. Models such as the Treynor-Mazuy and Merton-Henriksson. One can also study the bull beta and compare it to a bear beta. My ...
1
vote
0answers
80 views

PerformanceAnalytics and Annual Charting

I have seen a charts that look's like Is it possible to do something like this with PerformanceAnalytics or is there any other package for doing this? Thanks in advance
4
votes
2answers
643 views

Is there a way to adjust R PerformanceAnalytics function VaR with EWMA or GARCH method?

Is there a way to upgrade R PerformanceAnalytics function VaR with more risk sensitive approaches like EWMA or GARCH? Or is there another R package which can handle the issue?
4
votes
2answers
2k views

Looking for C# library that provides/contains performance analytics

I am looking for a C# .Net library that provides trade performance analytics similar to R-PerformanceAnalytics. Basic return statistics, draw-downs, risk-adjusted returns, risk (variations), ...
4
votes
3answers
1k views

How do Order Management/Matching Systems match/allocate orders (and filled prices)?

I am working on an improvement of my company's order allocation system. We run a central Order Management System (OMS) but currently performance attribution from filled orders leaves room for ...
1
vote
3answers
257 views

Industry convention to track trading performance against market indices?

I come from a programming background and not am no quant by career so this is probably a newbie question for you guys. I have written some code to pull daily closing values for market indices (DOW/...
1
vote
0answers
459 views

Call options portfolio: what would the underlyings' moments to be maximized?

Let you have only three underlyings, like SPY, TLT and GLD, and you want to buy $n_{1}$ Call options on SPY, $n_{2}$ Call options on TLT and $n_{3}$ Call options on GLD... with a limited budget, that ...
0
votes
4answers
1k views

How to do performance attribution for a few characteristics?

Let's say the characteristics that I am interested in are FX Country Security selection I have the benchmark weights and returns, the FX returns, and the portfolio weights and returns. Can someone ...
2
votes
2answers
631 views

performance attribution

I am trying to do some performance attribution for a few portfolios we manage. What I am trying to examine are three different sources of returns: The general asset allocation Security Selection The ...
12
votes
1answer
1k views

How to compute modified-CVaR in the PerformanceAnalytics package?

My objective is to measure the modified-CVAR for a portfolio given its weights and matrix of security returns. Luckily the wonderful package PerformanceAnalytics has an ES() function that does just ...
5
votes
2answers
1k views

Use Trades as Input for PerformanceAnalytics

I'd like to use the PerformanceAnalytics R package to view various metrics from a list of trades with profit values. From looking at the documentation from the PerformanceAnalytics package that most ...