Fully automated portfolio tracking system with 5 competing strategies:
- π€ Your Buy & Hold Portfolio (from TradingView)
- π‘ AI-Assisted Portfolio (Claude recommends, you approve)
- π’ Conservative Bot (-10% sell threshold)
- π Moderate Bot (-7% sell threshold)
- π Aggressive Bot (-5% sell threshold)
Updates automatically daily at 4:05 PM EST via GitHub Actions!
- Go to https://github.com
- Click "Sign up" (if you don't have an account)
- Follow the signup process
- Click the "+" in top right β "New repository"
- Name it:
portfolio-tracker - Set to Public (required for free GitHub Pages)
- β Check "Add a README file"
- Click "Create repository"
- In your new repository, click "Add file" β "Upload files"
- Drag and drop ALL these files:
portfolio_tracker.pyrequirements.txt.github/workflows/update_portfolio.yml(create folder structure first)
- Click "Commit changes"
Important: The .github/workflows/ folder structure must be exact!
- Go to "Settings" tab in your repository
- Click "Actions" β "General" (left sidebar)
- Under "Workflow permissions", select:
- β "Read and write permissions"
- Click "Save"
- Still in "Settings", click "Pages" (left sidebar)
- Under "Source", select:
- Branch: main
- Folder: / (root)
- Click "Save"
- Your URL will appear! (e.g.,
https://yourusername.github.io/portfolio-tracker/) - Bookmark this URL! π
- Go to "Actions" tab
- Click "Update Portfolio Dashboard" (left sidebar)
- Click "Run workflow" β "Run workflow"
- Wait ~30 seconds for green checkmark β
- Visit your GitHub Pages URL β Dashboard appears!
- Every day at 4:05 PM EST: GitHub Actions runs automatically
- Fetches closing prices from Yahoo Finance
- Bots check thresholds and trade autonomously if triggered
- Updates your webpage with latest portfolio values
- You just visit the URL anytime to see current standings!
- Bookmark your GitHub Pages URL
- Check it whenever you want (daily, weekly, monthly)
- That's it! Everything else is automatic
Strategy: Hold until quarterly rebalance (April 9, 2026)
Holdings (from TradingView):
- AVGO: 28.86 shares @ $346.35
- NVDA: 53.8 shares @ $185.89
- WMT: 87 shares @ $114.94
- IBKR: 142.4 shares @ $70.21
- ORCL: 50.04 shares @ $199.78
- UNH: 28.93 shares @ $345.57
- NEM: 92.08 shares @ $108.58
- TGT: 94.95 shares @ $105.30
- PYPL: 173.94 shares @ $57.50
- MO: 174.27 shares @ $57.38
Started: January 3, 2026
Initial Value: $100,000
Strategy: Claude makes recommendations, you approve changes
Holdings: Same as your portfolio initially
Started: January 10, 2026
Initial Value: $100,000
Strategy: Sell when stock drops -10% or more
Philosophy: "Patience wins - give stocks room to breathe"
Expected Trades: 1-3 per month
Initial Value: $100,000
Strategy: Sell when stock drops -7% or more
Philosophy: "Active management with discipline"
Expected Trades: 3-6 per month
Initial Value: $100,000
Strategy: Sell when stock drops -5% or more
Philosophy: "Quick exits, protect capital"
Expected Trades: 8-15 per month
Initial Value: $100,000
- Go to Actions tab
- Check if workflow is running (green checkmark = success)
- If red X β Click on it to see error
- Usually means: GitHub Actions not enabled or permissions issue
- Wait 2-3 minutes after first run
- Make sure repository is Public
- Check Settings β Pages is enabled
- Go to Actions tab
- Click "Update Portfolio Dashboard"
- Click "Run workflow" β "Run workflow"
- Refresh your dashboard URL after 30 seconds
After 12 months (January 2027), we'll know:
- Did your buy-and-hold strategy beat the bots?
- Which bot strategy performed best?
- Did Conservative's patience win?
- Did Aggressive's quick exits win?
- Was Moderate the sweet spot?
Success Criteria for Trusting AI with Real Money:
- Bot survives 12 months without blowing up in last 6 months
- Win rate >65%
- Beats S&P 500
- Demonstrates consistent learning/improvement
Every day at 4:05 PM EST, the system:
- β Fetches closing prices for all stocks
- β Calculates current portfolio values
- β
Checks if any bot should trade:
- Conservative: Any stock down -10%+? β SELL & BUY alternative
- Moderate: Any stock down -7%+? β SELL & BUY alternative
- Aggressive: Any stock down -5%+? β SELL & BUY alternative
- β Logs all trades with timestamps
- β Updates beautiful HTML dashboard
- β Commits changes to GitHub
- β Your webpage updates automatically!
You do: Nothing! Just visit the URL to check standings.
Leaderboard:
- Current rankings (who's #1?)
- Portfolio values
- Gains/losses in $ and %
Individual Portfolio Cards:
- Current value
- Performance metrics
- For bots: Win rate, total trades, recent activity
Trade History:
- Every autonomous trade logged
- Date, time, stocks involved
- Reason for trade
- Profit/loss
Fully Responsive:
- Works on phone, tablet, desktop
- Beautiful design
- Real-time data (updates daily)
- Daily: See if any bots traded today
- Weekly: Track performance trends
- Monthly: Compare strategies
- π Your dashboard URL
- βοΈ Your GitHub repository (to check Actions)
Your GitHub Pages URL is public! Share it with:
- Friends interested in AI trading
- Financial discussion groups
- Anyone who wants to follow the experiment
Set it up once β Runs automatically forever β Just watch the competition unfold!
The bots are now learning from real market data, making autonomous decisions, and competing against your strategy!
Visit your dashboard URL anytime to see who's winning! π
Questions? Check the Actions tab in your repository to see the automation running!