port_update: Plot Returns of different portfolios

Description Usage Arguments Value Author(s) Examples

Description

Plot one portfolio-development in comparison to two other ones

Usage

1
port_update(date_margin, returns, offset, portfolio)

Arguments

date_margin

A string specifying the start- and enddates

returns

A xts with several columns consisting of data

offset

A vector defining the portfolio weights

portfolio

A vector defining the portfolio weights

Value

A xts with development of portfolio

Author(s)

Philipp Giese

Examples

1
2
3
4
5
6
7
returns_safe<-calculate_mutliple_cc("CCCAGG",c("BTC","LTC","DASH"),"USD",7,T)
portf_safe<-c(0.3,0.4,0.3)
returns_medium<-calculate_mutliple_cc("CCCAGG",c("ADA","EOS","ZRX"),"USD",7,T)
portf_medium<-c(0.2,0.4,0.4)
returns_risky<-calculate_mutliple_cc("CCCAGG",c("PAY","BNB","ZCL"),"USD",7,T)
portf_risky<-c(0.2,0.4,0.4)
plot_rendite_comp(returns_safe,portf_safe,returns_medium,portf_medium,returns_risky,portf_risky,"20180915/","bottomleft")

philbtcecho/btcecho documentation built on June 6, 2019, 10:59 a.m.