plotNetPosition: Plot Net position of strategy

plotNetPositionR Documentation

Plot Net position of strategy

Description

Plot Net position of strategy

Get Capital of strategy

Usage

plotNetPosition(this, ...)

getNetPosition(...)

## S3 method for class 'Strategy'
plotNetPosition(
  this,
  start,
  end,
  leg = "all",
  return_type = "plot",
  graph_type = "ggplot2",
  ...
)

Arguments

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


Vitalic57/stratbuilder3gen documentation built on March 30, 2022, 6:58 a.m.