Description Usage Arguments Author(s) See Also Examples
A wrapper to create a rolling annualized returns chart, rolling annualized standard deviation chart, and a rolling annualized sharpe ratio chart.
1 2 |
R |
an xts, vector, matrix, data frame, timeSeries or zoo object of asset returns |
width |
number of periods to apply rolling function over |
Rf |
risk free rate, in same period as your returns |
main |
set the chart title, same as in |
event.labels |
TRUE/FALSE whether or not to display lines and labels for historical market shock events |
legend.loc |
places a legend into one of nine locations on the chart: bottomright, bottom, bottomleft, left, topleft, top, topright, right, or center. |
... |
any other passthru parameters |
Peter Carl
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.