I Turned Claude Code into an AI Hedge Fund... and this happened

I Turned Claude Code into an AI Hedge Fund... and this happened

The Challenge of Insider Trading in Wall Street

Introduction to the Problem

  • The speaker reflects on the SEC website, where major financial players disclose trades, noting that by the time this information reaches the public, it's often too late for average investors.
  • There is a perception that elite insiders have access to better opportunities, making it difficult for regular investors to compete.

Building an AI Hedge Fund

Concept and Motivation

  • Inspired by the challenges faced by everyday investors, the speaker decides to create an AI hedge fund modeled after top investors.
  • The goal is not just to provide generic investment advice but to demonstrate that AI can outperform traditional hedge funds through real data analysis.

Experiment Design

Parameters of the Experiment

  • The experiment involves using three months of historical data without any cheating or hindsight bias, comparing AI performance against actual hedge funds.
  • Acknowledges the challenge but emphasizes a mission to empower less wealthy individuals in investing.

Previous Attempts and Improvements

Learning from Past Experiences

  • Previous attempts at building an AI hedge fund had limitations as all agents analyzed identical data leading to similar conclusions.
  • This new model allows each agent to focus on different types of data relevant to their expertise, mimicking real-world hedge fund operations.

Unique Features of the New Model

Data Asymmetry Among Agents

  • Each agent receives tailored data: one focuses on fundamentals while another looks at technical indicators or market sentiment, ensuring diverse perspectives within decision-making processes.
  • Visual diagrams are used for transparency in understanding each agent's reasoning behind stock picks.

Technical Architecture and Development Process

Building Blocks of the System

  • Discussion about creating a modular architecture with separate feeds for economic news, market depth, and social sentiment among others; signals are aggregated into a central hub for analysis.
  • Emphasis on using modern technologies like Docker and TimescaleDB for efficient operation and storage solutions during development discussions.

Progress Updates During Development

Key Milestones Achieved

  • Day two involved setting up database tables and ingestion jobs for price data and news articles automatically collected at specified intervals.
  • By day three, five distinct investor profiles were established (Buffett, Munger, Cohen, Dalio, Ackman), each with unique access levels reflecting their investment strategies based on information asymmetry principles.

Dashboard Development

User Interface Enhancements

  • A dashboard was created featuring animated visuals representing pipeline activity along with panels displaying agent verdict confidence levels and committee consensus results.
  • Focused on proving predictive capabilities rather than retrospective analysis; integration issues arose during testing phases requiring troubleshooting efforts.

Conducting a Blind Experiment

Methodology Explanation

  • A double-blind study approach was adopted where neither participants nor researchers could influence outcomes; only historical data was utilized without future insights available.
  • Steps included loading past stock watch lists into databases followed by running simulations as if they were current market conditions.

Results Analysis

Performance Evaluation

  • After running tests over three months compared against S&P 500 returns; although both lost money overall (-2.89% vs -3.9%), AI outperformed S&P by approximately 1%.
  • Highlights include specific stocks yielding significant returns despite some losses indicating potential areas for improvement in future iterations.

Conclusion: Can AI Compete with Wall Street?

Final Thoughts

  • While unable to beat established hedge funds directly this time around; results indicate promise in leveraging technology effectively within finance sectors moving forward.
  • Encouragement extended towards viewers interested in developing similar projects emphasizing community support available through educational resources provided by speakerโ€™s platform.
Video description

๐Ÿ‘‰ Join my community where I work with you 1:1 to build production AI systems: https://www.skool.com/greymatterai-community/about I built an AI hedge fund in 5 days using Claude Code. Then I designed a blind experiment to test whether it could actually beat Wall Street โ€” without waiting 3 months for real results. โฐ TIMESTAMPS 00:00 The hook โ€” why I built this 01:30 The problem with my old AI hedge fund (2.4M views) 02:15 Planning the rebuild with ChatGPT voice mode 04:00 The build begins 04:30 Day 1-2: Infrastructure & signal detection 06:00 Day 3: Information asymmetry between agents 07:30 Day 4: The dashboard 08:15 Day 5: Everything breaks (6 bugs in one day) 09:30 The Blind Experiment explained 10:45 Running the experiment live 11:45 The reveal โ€” what the AI actually picked 13:00 Did it beat the S&P 500 and hedge funds? 15:25 The honest verdict ๐Ÿง  WHAT'S IN THE BUILD - 5 AI agents (Buffett, Munger, Ackman, Cohen, Dalio) with information asymmetry - Real-time signal detection across 20 emerging sector stocks - Regime-weighted investment committee - Deterministic CIO (no LLM hallucination in the final decision) - Live React dashboard with pipeline visualisation - Blind backtest framework for verifiable results ๐Ÿ›  TECH STACK - Claude Code (the build assistant) - Docker Compose - TimescaleDB - Redis + Celery - FastAPI - React + React Flow - yfinance + GPT-4o - PostgreSQL ๐ŸŽฏ THE BLIND EXPERIMENT The AI analyses stocks using ONLY data from 3 months ago. No future prices. No hindsight. Picks get locked in the database before any future data is fetched. Then we compare against: - S&P 500 (^GSPC) - HDG (HFRI Hedge Fund Replication ETF) - QAI (Multi-Strategy hedge fund index) - MNA (Merger Arbitrage) - BTAL (Market Neutral) This is the ONLY way to test an AI trading system fairly without waiting months for live results. ๐Ÿ“บ WATCH NEXT - I Gave Claude Code $200k to Trade Gold: https://youtu.be/7x64e7ldG9g?si=10ENCXUZqqUVNuVD ๐Ÿ’ฌ Drop a stock ticker in the comments โ€” most popular one, I'll add it to the watchlist and run the next blind experiment with it included. ๐Ÿ”” Subscribe for more AI engineering experiments where I actually build production systems and test them in the real world. #AI #HedgeFund #ClaudeCode #AITrading #Stocks #MachineLearning #Quantitative #Backtesting #FinTech #BlindTest