Blog Archives

Pair-Trading with S&P500 Companies – Part I.

March 30, 2011

In my recent post I wrote the code to download historical data for companies included in S&P500 index. Today I would like to perform statistical procedures to identify whether certain pair of stocks is co-integrated or not. Since there are approximately 500 companies that means I will need to perform calculations of testing. First of

Read more »

Loading CSV with Date and Time into Zoo in R

March 25, 2011

Sometimes you are facing time series which has both date and time property in one column in CSV file. In this case you need to pass additional parameter into read.zoo function:   View Code RSPLUS1 z <- read.zoo("/path/to/file/test.csv&...

Read more »

Downloading S&P 500 Data to R

March 23, 2011

The cornerstone of your analysis and quantitative trading algorithms are data. There are lots of different ways how to do it in R (depending of what your investment instruments are). Today I am going to download data from which are stock ...

Read more »

Code Highlighter for R in WordPress

March 21, 2011

First of all, welcome to my blog! I will write posts about trading, quantitative and algorithmic trading, programming and everything else what is on my mind. Feel free to comment and give suggestions how to improve this blog. Thank you! Well, one of th...

Read more »


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)