Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 1.02 KB

File metadata and controls

31 lines (24 loc) · 1.02 KB

SP1 — Full Port the #1

What This Is

A strategy that always holds the #1 US company by market cap. When leadership changes, switch at the next open.

Project Structure

  • backtest.py — Python backtest (2012–present) using Yahoo Finance. Compares #1 market cap strategy vs S&P 500.
  • web/ — Next.js 14 dashboard (React 18, Tailwind CSS). Shows live #1 company, gap to #2, top 5, and backtest results.

Deployment

Key Backtest Results

  • #1 Market Cap CAGR: 17.6% vs S&P 500: 14.2% (+3.4%/yr)
  • ~15 switches over 13+ years (AAPL, MSFT, NVDA, XOM)

Dev Commands

# Run backtest
pip install yfinance pandas numpy matplotlib
python backtest.py

# Run dashboard locally
cd web && npm install && npm run dev

# Deploy to Vercel
cd web && npx vercel --prod --yes