
Last chance! 50% off unlimited learning
Sale ends in
Plots the weights of the portfolio of an object of class Strategy
.
plotWeights(object, from = NULL, until = NULL, ...)# S4 method for Strategy
plotWeights(object, from = NULL, until = NULL, ...)
An object of class Strategy
.
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.
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.
# NOT RUN {
##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)
# }
Run the code above in your browser using DataLab