June 18, 2013

AAII Fund Portfolio - R Code

I’m uploading, as a text file, the R code for generating my AAII Fund Portfolio charts.  It’s really simple, uses Quantmod, and pulls daily data from Yahoo. 

What makes this code really neat is the use of the Quantmod package.  This is the package that allows you create stock charts, add technical data to them, and even do backtesting!  Take this code and make it your own. I would to see what you do with this code. Please share a link in the comments if you make something cool with it.

AAII Portfolio.txt

To use the above file, just 1) download and save it, 2) open the text file and save as AAII Portfolio.R, 3) load R and open the script file.  This assumes you have the Quantmod package installed, if not you can go here to download it.

Don't forget to sign up for our monthly newsletter on Data Science and RapidMiner here!

AAII RapidMiner R Markets

Previous post
The Nikkei Looks like the Nikkei ($NKY) is plunging overseas. The plunge will probably show up later today in the data download, but let’s take a look at her
Next post
RapidMiner on Raspberry Pi The image below is my first Raspberry Pi computer.  It’s an amazing little thing and I decided to purchase one ($35 USD) so I can connect it to my