Plot Capital of strategy
1 2 3 4 5 6 7 8 | plotCapital(this, ...)
## S3 method for class 'modelStrategy'
plotCapital(this, interactive_plot = TRUE,
start_date = NULL, end_date = NULL, leg = "all", ...)
## S3 method for class 'modelPortfolio'
plotCapital(this, ...)
|
this |
modelStrategy |
... |
params |
interactive_plot |
logical, if it is TRUE then plot will be intercative |
start_date |
Date / character, example: start_date='2008-01-01' |
end_date |
Date / character, example: end_date='2018-01-01' |
leg |
numeric / character, numeric is responsible for capital by legs, character can be "all" then capital will be summed or it can be "sep" then capital will be plotted for each leg |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.