What if you always held the largest US company by market cap?
Simple strategy: own whichever company is #1 by market cap. When leadership changes, switch at the next open. That's it.
| Metric | #1 Market Cap | S&P 500 |
|---|---|---|
| CAGR | 17.6% | 14.2% |
| Outperformance | +3.4%/yr | — |
The strategy has held AAPL, MSFT, XOM, and NVDA over the backtest period, with only ~15 switches in 13+ years.
backtest.py — Python backtest using Yahoo Finance data. Tracks historical #1 transitions (Apple, Microsoft, Exxon, NVIDIA), simulates the switching strategy, and compares against SPY. Outputs stats + chart.
Live Dashboard — Next.js app showing the current #1 company, the gap to #2, and a live top-5 leaderboard. Minimal dark UI, deployed on Vercel.
pip install yfinance pandas numpy matplotlib
python backtest.pyThis is a research project, not financial advice. Past performance does not guarantee future results.
