Description Usage Arguments Value
The Sharpe ratio use used to measure risk-adjusted return. This function also implements a naive form of scaling. For instance, for daily periodicity, using 252 as the scaling factor will annualize the result. Note that per Andrew Lo's 2003 paper The Statistics of Sharpe Ratios, this method is not recommended on its own except under very special circumstances.
1 | sharpe_ratio(strategy_object, risk_free = 0, scale = 1)
|
strategy_object |
a strategy object |
risk_free |
the risk-free rate, either numeric or a vector with the same periodicity as the strategy object's ledger. |
scale |
a scaling factor. |
a tibble contaning the strategy's Sharpe ratio.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.