Function to calculate portfolio equity given weights. Unlike the version from PerformanceAnalytics, can handle long-short portfolios. Returns equity curve as opposed to returns.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.