Skip to content

jmlweb/makemerich

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

394 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

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

Metric Value
Starting Capital €5,000.00
Current Balance €4480.41
Total Return -10.39%
Days Active 121

Current Positions

Asset Allocation P/L
πŸ“Š EQQQ 45.3% (€2266.88) +19.44%
πŸ“Š ITX 21.9% (€1093.92) +4.64%
πŸ“Š XEON 9.1% (€452.74) +6.31%
πŸ“Š 4GLD 8.8% (€441.93) -5.90%
πŸ’΅ CASH 4.5% (€224.94) β€”

Day 121 Close: EQQQ +19.44%, 4GLD -5.90%.

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-06-14 by Hustle

About

AI-driven investment simulation experiment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors