MarketsSep 2025–nowProject
Equity strategy backtester
Excel / VBA, then Python
- Sharpe · 15 markets
- 0.76
- Markets positive
- 12/15
- Correlation with S&P
- 0.06
- Rules tested, then frozen
- 228
Context
My first Excel backtest, a 20/200-day crossover, traded three times in five years, which proves nothing. So I went looking for a rule that holds up on data it has never seen.
What I did
- 01Built the backtester in Excel and VBA, then rebuilt it in Python.
- 02Tested 228 rules on the S&P 500 up to 2009, froze one, then ran it on 2010–2026 and 14 other markets.
- 03Tested 12-month trend-following, straight from the published research, on all 15 markets. It was the one edge that held up.
Outcome
A real but small edge: a Sharpe of 0.76 across 15 markets since 1995, almost uncorrelated with stocks.
Limitations
- Weaker since 2011: without Bitcoin, the Sharpe is 0.31.
- It doesn't beat holding the S&P on raw return. Its case is that it makes money when stocks fall.
- Free daily closes, no financing costs, and up to 3× leverage in calm markets.
Charts
Full size (opens in a new tab)
Full size (opens in a new tab)