calc_strat_headline_size | R Documentation |
Calculates headline sizes of strategies given the size of the component trades by first summing the positive sizes and negative sizes separately. Then taking the higher number as the size
calc_strat_headline_size(strat_df)
strat_df |
A dataframe of strategies which are dataframes containing timeseries sizes of their component instruments. Columns should be 'date', 'strategy', 'instrument', 'size' |
A dataframe containing the size of the strategies daily
portfolios <- build_strategies(demo_strategies, as.Date("2016-01-01"), as.Date("2018-12-07")) actual_pf_size <- convert_dur_size(portfolios$actual, portfolios$summary, demo_duration) calc_strat_headline_size(actual_pf_size)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.