DEV Community

Igor Ganapolsky
Igor Ganapolsky

Posted on

AI Trading: Day 77 - 25 Lessons Learned (January 13, 2026)

Day 77/90 - Tuesday, January 13, 2026

Today was a wake-up call. Two critical issues surfaced that could have derailed our entire trading operation. Here's what went wrong and how we're fixing it.

25 lessons learned today (11 critical, 6 high priority)

Alpaca Does NOT Support Trailing Stops for Options

Result: All option positions were UNPROTECTED, violating Phil Town Rule #1.

Trade Gateway Rule 1 Enforcement Fixed

Trade gateway only blocked BUY orders when P/L was negative. But short puts (SELL orders on options) also increase risk and were bypassing the Rule

Three More Missing Test Files Blocking CI

CI workflow failing because these test files referenced in ci.yml do not exist:

Lesson LL-158: Day 74 Emergency Fix - SPY to SOFI

Day 74/90 with $0 profit in paper account. System was blocking all trades.

Phil Town Rule 1 Violated - Lost $17.94 on Jan 13

Phil Town Rule


Tech Stack Behind the Scenes

Our AI trading system uses:

  • Claude Opus 4.5 - Primary reasoning engine for trade decisions
  • OpenRouter - Cost-optimized LLM gateway (DeepSeek, Mistral, Kimi)
  • Vertex AI RAG - Cloud semantic search with 768D embeddings
  • Gemini 2.0 Flash - Retrieval-augmented generation
  • MCP Protocol - Standardized tool integration layer

Every lesson is stored in our RAG corpus, enabling the system to learn from past mistakes and improve continuously.

Full Tech Stack Documentation


Auto-generated from our AI Trading System's RAG knowledge base.

Follow our journey: AI Trading Journey on GitHub

Top comments (0)