Getting Started with the Interactive Brokers Native API

Here at Robot Wealth, we trade with Interactive Brokers (IB) primarily because they offer access to global markets at a reasonable price. In recent times, IB has put some time and effort into upping its tech game, including development of an API for interacting with its desktop trading applications. An application that interacts with IB’s …

Read more

Navigating Tradeoffs with Convex Optimisation

Navigating Tradeoffs with Convex Optimisation This is the final article in our recent stat arb series. The previous articles are linked below: A short take on stat arb trading in the real world A general approach for exploiting stat arb alphas Ideas for crypto stat arb features Quantifying and combining crypto alphas A simple and …

Read more

Building Intuition for Trading with Convex Optimisation with CVXR

This article continues our recent stat arb series. The previous articles are linked below: A short take on stat arb trading in the real world A general approach for exploiting stat arb alphas Ideas for crypto stat arb features Quantifying and combining crypto alphas A simple and effective way to manage turnover and not get …

Read more

How to Model Features as Expected Returns

Modeling features as expected returns can be a useful way to develop trading strategies, but it requires some care. The main advantage is that it directly aligns with the objective of predicting and capitalising on future returns. This can make optimisation and implementation more intuitive. It also facilitates direct comparison between features and provides a …

Read more

A Simple, Effective Way to Manage Turnover and Not Get Killed by Costs

Every time we trade, we incur a cost. We pay a commission to the exchange or broker, we cross spreads, and we might even have market impact to contend with. A common issue in quant trading is to find an edge, only to discover that if you executed it naively, you’d get killed with costs. …

Read more

Quantifying and Combining Crypto Alphas

In this article, I’ll take some crypto stat arb features from our recent brainstorming article and show you how you might quantify their strength and decay characteristics and then combine them into a trading signal. This article continues our recent articles on stat arb: A short take on stat arb trading in the real world …

Read more

How I use TradingView (and how to get 70%+ off)

​Disclaimer: the links in this post are affiliate links. If you use them to purchase a TradingView subscription, you’ll receive $15 in addition to the massive Black Friday discounts TradingView is currently running. We’ll receive a few dollars, too – so thanks in advance if you purchase using our link. I’m sure you’ve heard of TradingView. …

Read more

Exponentially weighted covariance in an Equal Risk Contribution portfolio optimisation problem

The Equal Risk Contribution (ERC) portfolio seeks to maximally diversify portfolio risk by equalising the risk contribution of each component. The intuition is as follows: Imagine we have a 3-asset portfolio Assets 1 and 2 are perfectly correlated (correlation of 1.0) Asset 3 is uncorrelated with the other two (correlation of 0.0) Let’s say we …

Read more