Tradelib is Open Source

Tradelib is my framework which I have been using for backtesting and signal generation in my futures trading. My feeling is that it might be useful to others, and I have decided to open source it.

Unfortunately, I don’t have the time at the moment to open source any strategy implemented with it, and I am also too lazy to provide a step-by-step guide for it. If you have an interesting strategy which you don’t mind sharing with the rest of the world, let me know, and I may consider implementing it and adding it to the repository as an illustrative example.

Interactive Brokers Now Supports Continous Futures

I just noticed that Interactive Brokers has added some support for continues futures contracts! For me that’s a great feature and I certainly hope they will expand on it in the future. I’d love to see them providing automated roll over support and a continuous data feed – as a paid service, of course.
Read More

Trading Moving Averages with Less Whipsaws

Using a simple moving average to time markets has been a successful strategy over a very long period of time. Nothing to brag home about, but it cuts the drawdown of a buy and hold by about a half, sacrificing less than 1% of the CAGR in the process. In two words, simple yet effective. Here are the important numbers (using the S&P 500 index from 1994 to 2013, inclusive):

Read More

A Better ZigZag

There are a lot of “winning” strategies for bull markets floating around. “Buy the pullbacks” is certainly one of them. Does this sound simple enough to implement to you? While I am no Sheldon Cooper (although I have a favorite couch seat), I still like to live in a somewhat well defined world, a world in which, there is much more information attached to a tip like “Buy the pullbacks”. Let’s start with a chart of the recent history of the S&P 500 ETF:

Read More

What has Worked in June

Time to start looking at the next month. Let’s start with the top five performing futures (ordered by winning percentage):

Read More

Moved Quantscript to GitHub

Quantscript is an old project of mine, which was hosted on google.code. Since google.code is shutting down, I had to either scrap it or migrate it to GitHub. I am not using this code on a daily basis anymore, and since the project is relatively small – the natural thing would have been to scrap it. However, I found myself a few times over the years pulling out the source code of the project to follow as an example how to do different things in Python. Hence, I thought better to spend the time to migrate the project.

Read More

What has Worked in March?

Since February didn’t show anything interesting in the calendar analysis, I passed on writing a post about it. March, on the other hand, looks quite interesting. Let’s start with the top five performers (ordered by winning percentage):

Read More

Adding back the Swiss Franc, or not?

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.

Read More