Description Usage Arguments Value
This function calulates the per-period returns for a backtested strategy object. This is useful for any portfolio analytics calculations that require portfolio values to be passed as returns. This function can calculate either arithmetic or log returns by specifying the method argument.
1 | return_calculate(strategy_object, method = c("arithmetic", "log"))
|
strategy_object |
a strategy object |
method |
Calulation method: "arithmetic" or "log" returns. |
A tibble of dates and per-period returns
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.