Using R to analyse MAN AHL Trend

December 30, 2015

(This article was first published on Copula, and kindly contributed to R-bloggers)

Let’s use the great PerformanceAnalytics package to get some insights on the risk profile of the MAN AHL Trend Fund. It’s a program with a long track record – I believe in the late 80′. The UCITS Fund NAV Data can be downloaded from the fund webpage as xls file- starting 2009.

First let’s import the data into R. I’m using a small function, to import .csv which returns an .xts object named ahl.

#Monthly NAV MAN AHL
  a=read.table(“ahl_trend.csv”,sep = “,”,dec = “,”)
  a$date = paste(substr(a$V1,1,2),substr(a$V1,4,5),substr(a$V1,7,10),sep=”-“)

next we would like to have the monthly returns

monthlyReturn(x, subset=NULL, type='arithmetic',
leading=TRUE, ...)

 which we store in retahl.


Next, I usually plot the chart.Drawdown to get a visual idea, if the product is designed for my risk appetite.


Annualized Return 0.0212
Annualized Std Dev 0.1246
Annualized Sharpe (Rf=0%) 0.1702
Semi Deviation 0.0254
Gain Deviation 0.0222
Loss Deviation 0.0222
Downside Deviation (MAR=10%) 0.0289
Downside Deviation (Rf=0%) 0.0241
Downside Deviation (0%) 0.0241
Maximum Drawdown 0.2478
Historical VaR (95%) -0.0521
Historical ES (95%) -0.0748
Modified VaR (95%) -0.0573
Modified ES (95%) -0.0730

To leave a comment for the author, please follow the link and comment on their blog: Copula. offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...

If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.


Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)