System Testing

February 28, 2013

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

R at Work…crunching numbers

If you wanna find out how your trading idea would have coped in the previous years you would perform a backtest. For years I have used commercial software but could not find a package, which I would really recommend. I have to admit that my criterias might be very specific.

That’s why I looked at R closer and I’m impressed by the quaility of the available packages and the strong community.

The packages I’m using on a daily basis


They are really the backbone of my set-up. Now testing a system is in my mind something really customized and I can only highlight what is important to me and give you some reasons why I’m paying attention to those aspects.
For the avoidance of doubt, when I’m refereing to system testing, I’m not suggesting that we use a pure Technical Analysis approach. I’m not to much into this type of systems, also I have to admit that a very stable system over many years is based around ATR and ADX.

In my mind a system is supposed to give you a clear Entry and Exit Point and when I say clear I mean I prefer a buy or selllimit I can put through to my broker.

I never simulate on market orders or as unfortunately used in various systems, conveniently using the Close price.  If you don’t get a precise limit at least simulate with the worst case – being the daily Low.

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.

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)