Blog & Code

Backtests, data, and equity strategy ideas. Code when relevant.

Jul 19, 2026

Connect to IBKR with Python

This post shows how to connect Python to Interactive Brokers with ib_async and download historical prices into pandas.

Python API Downloading data Code
Python code connects to the Trader Workstation desktop app, which connects to Interactive Brokers.
Jul 13, 2026

Why You Need to Bootstrap Your Trading Strategy

This post shows how bootstrapping can reduce uncertainty about whether the performance of backtested trading strategies reflects a genuine edge or chance.

Python Backtesting Statistics Code
Why You Need to Bootstrap Your Trading Strategy
Jul 5, 2026

How to write better

Five rules for focusing your writing and saying more with less.

Writing
How to write better
Jun 3, 2026

Are markets overvalued?

Three portfolios' performance across the full range of S&P 500 monthly returns, 1988 to 2026.

Python Backtesting Code
Are markets overvalued?
Apr 22, 2026

Following insider trades?

A monthly-rebalanced, equal-weighted portfolio of the largest net-dollar insider buyers benchmarking against the S&P 500.

Python Backtesting Code
Following insider trades?
Apr 20, 2026

Classify Insiders as Informed

Classifying insiders as informed according to Cohen, Malloy & Pomorski (2012) routine/opportunistic insider split.

Code Python
Classify Insiders as Informed
No matching items