Backtesting in Excel and R

February 17, 2011

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

This post is the introduction to a series that will illustrate how to backtest the same strategy in Excel and R.  The impetus for this series started with this tweet by Jared Woodard at Condor Options.  After Soren Macbeth introduced us, Jared suggested  backtesting a simple DVI strategy in Excel and R.

The three-post series will show you:

  1. Resources that make it easier to move from Excel to R
  2. How to test DVI in Excel
  3. How to test DVI in R

Since I know next to nothing about testing strategies in Excel, I will be writing posts 1 and 3.  Jared was kind enough to create the Excel framework for post 2, but did not have time to devote to a full post.  Thankfully, Damian Roskill has agreed to write post 2 using Jared’s Excel file.

Hopefully this will be a useful example for those of you who currently use Excel but would like to explore how to use R.

To leave a comment for the author, please follow the link and comment on their blog: FOSS Trading. 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.

Search R-bloggers


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)