Skip to content

Repository files navigation

💰 MakeMeRich

A public experiment in AI-assisted investing — and in figuring out what AI should actually do vs what it shouldn't.

📊 Portfolio Performance

Balance Chart

MetricValue
Starting Capital€5,000.00
Current Balance€4492.98
Total Return-10.14%
Days Active190

Current Positions

AssetAllocationP/L
📊 EQQQ44.4% (€2220.93)+17.02%
📊 ITX22.8% (€1138.50)+8.90%
📊 XEON9.1% (€454.63)+6.75%
💵 CASH5.1% (€256.38)
📊 SIE4.5% (€227.36)+0.79%
📊 AIR2.2% (€111.23)-4.14%
📊 ASML1.7% (€83.47)-3.09%
📊 4GLD0.0% (€0.46)+1.86%

Day 190 Close: EQQQ +17.02%, AIR -4.14%.

What is this?

A public experiment where an AI system manages €5,000 of simulated capital, making real investment decisions based on real market data.

This is NOT financial advice. Simulation for educational/entertainment purposes only.

How it evolved

The system has gone through two distinct phases:

Phase 1: Autonomous AI (Days 1-43)

Claude (Anthropic's AI) had full control. It analyzed markets, chose assets, decided position sizes, and executed trades — all autonomously. The AI agent ran 5x daily via cron, using tools (file editing, shell commands) to directly modify the portfolio.

Results: the AI made some good calls (ETH, gold) but also costly ones (a large inverse S&P 500 bet that went wrong). More importantly, the automation was fragile — the agent would timeout, exhaust its turn limit, or fail silently. When it worked, it consumed thousands of tokens per session on tasks that didn't require intelligence.

Phase 2: Quantitative system + AI analysis (Day 44+)

After analyzing the failures with Claude, we redesigned the architecture around a principle: if it doesn't require reasoning, don't use AI for it.

Now the system works like this:

  • Deterministic scripts handle everything mechanical: fetching prices, computing signals (SMA, RSI, MACD, ATR), generating trade orders, applying trades to the portfolio, writing the daily log, git commits, and sending Telegram reports
  • Claude does one thing: reads the pre-computed data and writes 2-3 sentences of market analysis. One turn, no tools, 45 seconds. If it fails, the system continues without it — nothing breaks

The quantitative signal pipeline (generate-quant-signals.js + execute-signals.js) replaced narrative-driven trading with systematic rules: trend following, momentum, mean reversion, and volatility filters with position sizing based on ATR.

Token consumption dropped ~80%. Reliability went from "fails weekly" to "never fails".

Rules

  1. Legal investments only — anything legal in Spain
  2. Real market data — actual prices and conditions
  3. Full transparency — all decisions and reasoning public
  4. No private data — nothing confidential published

End Conditions

  • 📉 Balance reaches €0 (game over)
  • 📅 One year passes (January 27, 2027)
  • 🏆 Balance reaches €50,000 (10x victory!)

Architecture

makemerich/
├── README.md # This file (auto-updated)
├── LEDGER.md # Daily log (reverse chronological)
├── STRATEGY.md # Investment rules and approach
├── RULES.md # Hard constraints (position limits, stops)
├── data/ # Portfolio state, prices, signals, trades
│ ├── portfolio.json # Current holdings
│ ├── .prices-latest.json
│ ├── .signals-latest.json
│ ├── .quant-signals-latest.json
│ ├── .trade-orders.json
│ └── trades/ # Monthly trade logs
└── scripts/
├── fetch-prices.js # Yahoo Finance + Coinbase
├── fetch-history.js # Historical OHLCV data
├── update-portfolio.js # Recalc at current prices
├── validate-rules.js # Check position limits, stops
├── generate-signals.js # Threshold-based alerts
├── generate-quant-signals.js # Technical analysis (SMA, RSI, MACD, ATR)
├── execute-signals.js # Generate binding trade orders
├── apply-trades.js # Apply orders to portfolio.json
├── generate-ledger-entry.js # Build LEDGER draft (data only)
├── append-ledger.js # Insert entry at top of LEDGER
├── update-readme.js # Update this file
└── daily-update.sh # Orchestrator (cron entry point)

Links


Last updated: 2026-08-23 by Hustle

About

AI-driven investment simulation experiment

Resources

Stars

6 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages