r - why is chart.CumReturns diff to cumsum? -


i have matrix of returns x assets.

i can plot cumulative performance this:

pnls.cum<-apply(pnls.allin , 2 , cumsum) plot(pnls.cum[,1],type="l") 

or

chart.cumreturns(pnls.allin[,1]) 

but graphs subtly different (highs/lows etc) . there reason why?

chart.cumreturns uses geometric chaining (a product) default, not arithmetic chaining (a sum). set geometric=false:

chart.cumreturns(pnls.allin[,1], geometric=false) 

Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -