Dear R coding community,
I am currently writing my master's theses but I struggle with combining multiple rolling annualized returns. To be more specific, I try to overlay 3 different portfolio's returns with the command 'chart.RollingPerformance'. The code for 1 portfolio is as follows:
chart.RollingPerformance(R=bt_benchmarkM_returns, width=6,
main='Rolling 6-month annualized return',
FUN="Return.annualized",legend.loc="bottomleft")
I tried the 'lines' command:
lines(pf_mad_returnmonthly, col="red")
and also
lines(chart.RollingPerformance(R=pf_bl_returnmonthly, width=6,
colorset=rich8equal,
FUN="Return.annualized",
legend.loc="bottomleft",
main="BLCOP - rolling 6-month annualized
return"))
but none of them yielded the result I desired.
I hope there is anybody helping me with this issue, as I am rather new to R, but still have little experience due to the coding already implemented.
KR Patrick