plotWeights: Plot Strategy Weights

Description Usage Arguments Examples

Description

Plots the weights of the portfolio of an object of class Strategy.

Usage

1
2
3
4
plotWeights(object, from = NULL, until = NULL, ...)

## S4 method for signature 'Strategy'
plotWeights(object, from = NULL, until = NULL, ...)

Arguments

object

An object of class Strategy.

from

The date in character format "yyyy-MM-dd" or as date-object from which weights shall be plotted. If NULL, the start date of the weights is used.

until

The date in character format "yyyy-MM-dd" or as date-object until which weights shall be plotted. If NULL, the end date of the performances is used.

...

Currently not active.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
##Not run:

# MA(200)-Strategy
params <- list(k=200)
myStrat.MA <- Strategy(assets=assets, strat="MA", strat.params=params)

# Plot MA(200)-Strategy weights
plotWeights(myStrat.MA)

##End(Not run)

Strategy documentation built on May 2, 2019, 2:09 a.m.