[prev in list] [next in list] [prev in thread] [next in thread] 

List:       r-sig-finance
Subject:    Re: [R-SIG-Finance] Backtesting without long-only constraint
From:       "Brian G. Peterson" <brian () braverock ! com>
Date:       2016-08-19 17:42:07
Message-ID: 1471628527.7874.94.camel () brian-rcg
[Download RAW message or body]


On Fri, 2016-08-19 at 18:31 +0100, d.indjic@iee.org wrote:
> Are there any libraries enabling the portfolio back testing a la
> PortfolioAnalytics's Portfolio.return() with -ve weightings, or relaxed
> leverage constraint?

Return.portfolio in PerformanceAnalytics supports whatever you want for
the weights vector, including negative weights and leverage.

You speak about 'portfolio back testing' without specifics, so I'll
assume that you mean a portfolio optimization with periodic rebalancing.

If my assumption is correct, you can use the package PortfolioAnalytics
for rebalancing optimizations of long/short portfolios with or without
leverage constraints.  It can also support selective constraint
relaxation to get to a feasible portfolio.  

Be aware that more complicated constraints and objectives rapidly get
into the territory of stochastic global solvers like differential
evolution, particle swarms, and simulated annealing, or constraint-based
random search of the feasible space.   These are all supported, but may
take a long time or be difficult to get convergence.

Regards,

Brian

_______________________________________________
R-SIG-Finance@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-sig-finance
-- Subscriber-posting only. If you want to post, subscribe first.
-- Also note that this is not the r-help list where general R questions should go.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic