plotPosition: Plot Capital of strategy

plotPositionR Documentation

Plot Capital of strategy

Description

Plot Capital of strategy

Get amount of money in position

Usage

plotPosition(this, ...)

getPosition(...)

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

Arguments

this

Strategy

...

params for plotPosition

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.