plotNetPosition | R Documentation |
Plot Net position of strategy
Get Capital of strategy
plotNetPosition(this, ...) getNetPosition(...) ## S3 method for class 'Strategy' plotNetPosition( this, start, end, leg = "all", return_type = "plot", graph_type = "ggplot2", ... )
this |
Strategy |
... |
params for plotNetPosition |
start |
Numeric scalar / Date / character, example: start_date='2008-01-01' |
end |
Numeric scalar / 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 |
return_type |
character, enter 'plot' for graphical representation or 'data' for xts series. |
graph_type |
character, ggplot2 or plotly |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.