Adding back the Swiss Franc, or not?

by ivannp on January 17, 2015

The recent move by the Swiss National Bank (SNB) to remove the peg between the Swiss Franc and the Euro has caused lots of turmoil (see here and here) in an already volatile environment. The magnitude of the event was a pure surprise to me. Yes, this is Switzerland, and this is the Swiss Franc, but, from a mere technical point of view, after the peg in September 2011, the Franc should not have been treated any more as a major currency. Consider, which currencies are pegged? If China removes the peg between the Yuan and the US dollar, would it send the same shock waves through the world markets? I doubt it.

Click to continue…

The Greed that is not Good

by ivannp on January 13, 2015

It’s embarrassing, but hoping it might be useful to others, I’ll share it anyways.

At the beginning of January, as usual, I posted the allocations for that month for the strategy I call Max-Sharpe and which I try to follow. So what’s the deal? Well, I wasn’t able to enter these positions, since I became too “greedy”.

Click to continue…

Max-Sharpe ETFs for January

by ivannp on January 2, 2015

December’s Allocations were good for a 0.9% gain, which put the year at 5.1%. Nothing to be too proud of, but the full story is better. It will have to wait for another post, since the annual reports are not ready yet.

Click to continue…

What has Worked in January?

by ivannp on December 26, 2014

After my calendar analysis of the Russell 2000 proved to be right on target (up more than 5% since that point), I couldn’t resist but to take a similar look at the month of January. My universe was my list of futures. On the long side, the top three (sorting done by winning months) were:

Click to continue…

Is the Russell 2000 primed for a Long?

by ivannp on December 14, 2014

Today over a coffee, me and a friend did a quick analysis on the Russell 2000. The reason was that I was holding a short, and was debating whether to close it or not. Not only the outcome of this analysis made my action clear, but it also surprised me quite a bit. Here are the monthly statistics for the month of December.

Click to continue…

Parallelism via “parSapply”

by ivannp on December 13, 2014

In an earlier post, I used mclapply to kick off parallel R processes and to demonstrate inter-process synchronization via the flock package. Although I have been using this approach to parallelism for a few years now, I admit, it has certain important disadvantages. It works only on a single machine, and also, it doesn’t work on Windows.

Click to continue…

Went Long on the S&P 500

by ivannp on December 4, 2014

It has been a while since my system had a position in the S&P 500, but it’s back. Went long at the close today.

Max-Sharpe Allocations for December

by ivannp on December 1, 2014

December is going to be interesting, mostly from a performance point of view. Based on seasonality, emotions and gut feeling, I’d go mostly into stocks, mostly US. My Max-Sharpe approach tells me otherwise, and I will stick with the boss’s allocations. Here they are:

Click to continue…

Storing Forecasts in a Database

by ivannp on November 29, 2014

In my last post I mentioned that I started using RSQLite to store computed results. No rocket science here, but my feeling is that this might be useful to others, hence, this post. This can be done using any database, but I will use (R)SQLite as an illustration.

Click to continue…

Synchronization for R with the flock Package

by ivannp on November 20, 2014

Have you tried synchronizing R processes? I did and it wasn’t straightforward. In fact, I ended up creating a new package – flock.

One of the improvements I did not too long ago to my R back-testing infrastructure was to start using a database to store the results. This way I can compute all interesting models (see the “ARMA Models for Trading” series for an example) once and store the relevant information (mean forecast, variance forecast, AIC, etc) into the database. Then, I can test whatever I want without further heavy lifting.

Click to continue…