Publications by systematicinvestor

Modeling Couch Potato strategy

25.10.2012

I first read about the Couch Potato strategy in the MoneySense magazine. I liked this simple strategy because it was easy to understand and easy to manage. The Couch Potato strategy is similar to the Permanent Portfolio strategy that I have analyzed previously. The Couch Potato strategy invests money in the given proportions among different types...

2985 sym R (4738 sym/3 pcs) 8 img

Regime Detection

31.10.2012

Regime Detection comes handy when you are trying to decide which strategy to deploy. For example there are periods (regimes) when Trend Following strategies work better and there are periods when Mean Reversion strategies work better. Today I want to show you one way to detect market Regimes. To detect market Regimes, I will fit a Hidden Markov ...

2276 sym R (2465 sym/4 pcs) 8 img

Simulating Multiple Asset Paths in R

05.11.2012

I recently came across the Optimal Rebalancing Strategy Using Dynamic Programming for Institutional Portfolios by W. Sun, A. Fan, L. Chen, T. Schouwenaars, M. Albota paper that examines the cost of different rebablancing methods. For example, one might use calendar rebalancing: i.e. rebalance every month / quarter / year. Or one might use thresho...

2403 sym R (4582 sym/3 pcs) 18 img

Regime Detection Pitfalls

14.11.2012

Today, I want to address some questions that I was getting regarding the Regime Detection post. In the Regime Detection post I showed an example based on the simulated data, and some of you tried to apply this example to actual stocks. There is one big problem that you have to be aware in designing the trading system that uses Regime Detection. L...

2223 sym R (4329 sym/3 pcs) 10 img

Extending Commodity time series

21.11.2012

I want to follow up with Extending Gold time series post by showing how we can extend Commodity time series. Most Commodity ETFs began trading in 2006, please see the List of Commodity ETFs page. I will use DBC – PowerShares DB Commodity Fund, one on the most liquid Commodity ETFs as my proxy for Commodity time series. Unfortunately the histori...

1954 sym R (2803 sym/2 pcs) 10 img

Financial Turbulence Example

01.12.2012

Today, I want to highlight the Financial Turbulence Index idea introduced by Mark Kritzman and Yuanzhen Li in the Skulls, Financial Turbulence, and Risk Management paper. Timely Portfolio did a great series of posts about Financial Turbulence: Part 1, Part 2, Part 3. As example, I will compute Financial Turbulence for the equal weight index of G1...

1352 sym R (2584 sym/2 pcs) 6 img

TFX Package

05.12.2012

Today I want to highlight the TFX Package created by Garrett See. TFX is an R Interface to the TrueFX(tm) Web API for free streaming real-time and historical tick-by-tick market data for dealable interbank foreign exchange rates with millisecond detail. Garrett provided a great tutorial, examples, and shiny application of TFX at http://rpubs.com/...

996 sym R (318 sym/3 pcs) 4 img

XLLoop framework

07.12.2012

Today I want to highlight the XLLoop framework : Excel User-Define Functions in in any language. The XLLoop consists of two main components: An Excel addin implementation (XLL written in c++). A server and framework written in R (or/and in many other languages). The XLLoop allows you to connect Excel and R in very simple way with almost zero in...

2735 sym R (109 sym/1 pcs) 4 img

XLLoop examples

10.12.2012

Today I want to follow up with the XLLoop framework post. Please read the XLLoop framework post first to setup the XLLoop before trying the examples below. My first example is based on the TFX Package – to retrieve real-time FX quotes. To try this example, please first install the TFX Package. Please note that you would need R (>= 2.15.0) to ru...

2364 sym R (1306 sym/4 pcs) 8 img

Visualizing Principal Components

22.12.2012

Principal Component Analysis (PCA) is a procedure that converts observations into linearly uncorrelated variables called principal components (Wikipedia). The PCA is a useful descriptive tool to examine your data. Today I will show how to find and visualize Principal Components. Let’s look at the components of the Dow Jones Industrial Average i...

1940 sym R (3690 sym/4 pcs) 10 img