Get Started
Home Hedge Fund

Mission 3 of 5

Home Hedge Fund, Module 3: AI Hedge Fund, Buffett, Munger and Graham on your desk

AI investors modelled on Warren Buffett, Charlie Munger, Benjamin Graham, Peter Lynch and Stanley Druckenmiller, blended into strategies with hard risk limits. In this module you'll backtest a fund, write your own mandate from a complete example, paper trade it one market day at a time with a ledger that builds a real track record, grade every investor on a scorecard and put the whole thing on autopilot.

55 minIntermediateThe app is freeStep 1 free

What you'll do

The AI Hedge Fund app (aihf) installed and running in your terminal
Your data and model keys saved safely, and the model choice under your control
Your first backtest, with an equity curve drawn against the market
  • Two ready-to-use mandates of your own: a quality fund and a no-AI-cost quant fund
  • A paper fund with a ledger and a scorecard, ticking forward on a schedule
Before you start
  • Module 1 done: Miniconda installed
  • Python 3.11 or newer (conda installs it for you)
  • A Financial Datasets ↗ API key for prices, fundamentals and earnings (paid)
  • One AI model key: Anthropic, OpenAI, DeepSeek, Google, xAI, Kimi or TypeSafe
  • About 55 minutes
Your progress0/9
01/09What AI Hedge Fund does, and what you'll use it for0 done
STEP 01 of 09~4 min

What AI Hedge Fund does, and what you'll use it for

Understand how a fund, its strategies and its investors fit together.

AI Hedge Fund, by Virat Singh, is built like a real fund. There are three layers, and once you see them everything else makes sense:

  • Models: the analysts. Five are AI investor personas: buffett, munger, graham, lynch and druckenmiller. Others are quant models, like pead (post-earnings drift). Each gives a view on a stock with its reasoning.
  • Strategies: a team of models blended together. The built-in library has deep-value (Graham-led, with Buffett and Munger), earnings-drift (the pead model), fundamental-ls (all five investors, long and short) and inflections (Druckenmiller and Lynch hunting turning points).
  • The fund (mandate): your capital split across strategies, plus risk limits, trading costs and how often it trades. It never names tickers. You pick the stocks when you backtest or deploy it.

The AI forms views, code places the tradesDeterministic code sizes every position and hard risk limits sit on top, so the AI never touches an order directly. Decisions made at one close are executed at the next, in backtests and paper trading alike.

What people use it for

  • "What would Buffett think?" Put your watchlist in front of five legendary styles and see who likes what, and why.
  • Backtest before you commit. Replay a fund over the last few hundred days against SPY and see the curve.
  • A paper fund with a real track record. Every session goes into a hash-chained ledger that can't quietly reset.
  • Grade the greats. After a few weeks, the scorecard shows which investor persona is actually earning its seat.
Warning
Not financial advice. Start in paper/dry-run mode.
Checkpoint
You can explain the difference between a model, a strategy and a mandate.
Stuck? Ask the community
Next mission · Home Hedge FundHome Hedge Fund, Module 4: Qlib, Microsoft's AI quant lab
→