Description Usage Arguments Value Functions
View source: R/return_metrics.R
Given price relatives and portfolios at each period, returns a vector containing the factor by which cumulative wealth has increased at that trading period
1 2 3 4 5 6 7 8 9 10 11 | evaluate_daily_return(
price_relative_matrix,
portfolios_after_trade,
transaction_rate
)
evaluate_cumulative_wealth(
price_relative_matrix,
portfolios_before_trade,
transaction_rate
)
|
price_relative_matrix |
A T x n matrix of price relatives |
portfolios_after_trade |
a T x n matrix of the portfolios after the trade (an entry in a portfolio is the portion of total wealth in that asset), the ith row is after a trade in period i but before the ith price relatives occur. |
transaction_rate |
The proportion of each buy/sell lost to transaction fees, must be in [0,1] |
a vector of length T whose ith entry reports the factor of wealth after the prices change according to the ith price relatives
evaluate_cumulative_wealth
: Gives the factor by which initial wealth has increased at each trading
period.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.