Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
Videos & KonferenzenShannon Morse: Google Pixel 11 Pro XL Review - The Good, Bad & AI(19.09.2026 um 15:14 Uhr)
Videos & KonferenzenShannon Morse: Google Pixel 11 Pro XL Review - The Good, Bad & AI(19.09.2026 um 15:14 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

How I built an AI stock trading system with Claude API (open source)

I spent the last few days building a semi-automated stock analysis
system powered by Claude AI. Here's what I built and how it works.

The Problem

Most retail traders make emotional decisions. I wanted to build
something that combines the pattern-recognition of technical analysis
with the reasoning ability of a large language model — and forces both
to agree before making any move.

System Architecture

The system has 7 core modules:

  • Stock Scanner — scans 14 tech stocks daily, filters by RSI, MA20, MA50, volume
  • Strategy Engine — generates rule-based signals (BUY / WATCHLIST_BUY / HOLD / SELL)
  • News Service — fetches real-time news via yfinance, scores relevance
  • Claude AI Analyzer — independently evaluates each candidate stock
  • Decision Engine — combines rule signal + AI signal with confidence thresholds
  • Risk Manager — enforces stop loss (5%), take profit (10%), max hold days (10)
  • Memory System — feeds historical performance back to Claude on each run

The Dual Signal Engine

The key insight: neither pure technical analysis nor pure AI is reliable alone.

# Only BUY when both agree
if rule_signal == "WATCHLIST_BUY" and ai_signal == "BUY" and confidence >= "Medium":
    final_action = "BUY"

This filters out most false positives.

Memory System

Claude has no memory between API calls. So I built an external memory
layer that summarizes recent performance and injects it into every prompt:
System Memory (last 14 days):
NVDA: RSI>85 observed 12 times without SELL trigger — pullback risk elevated
AAPL: WATCHLIST_BUY + AI HOLD pattern occurred 3 times — low conviction setup

This makes Claude's analysis context-aware over time.

Real Output Example

=== Stock Scanner ===
[WATCHLIST_BUY] AAPL @ $273 | RSI=67 | Score=3
[WATCHLIST_BUY] CRM @ $189 | RSI=53 | Score=3
Analyzing CRM...
Rule Signal: WATCHLIST_BUY | AI Signal: BUY | Confidence: Medium
Final Action: BUY
[SIMULATED BUY] CRM x5.27 @ $189.80 = $1000

Tech Stack

  • Python 3.11
  • Anthropic Claude API (claude-sonnet-4-6)
  • yfinance for price data and news
  • Custom news relevance scoring algorithm
  • schedule for automated daily runs

Results So Far

Running in simulation mode with $10,000 virtual capital.
The system correctly identified CRM before a 1.4% gain and avoided
NVDA when RSI hit 91 (extreme overbought).

Links

Happy to answer questions about the Claude API integration or the
decision engine logic!

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten How I built an AI stock trading system with Claude API (open source)

Thematisch verwandte Begriffe: built, stock, trading, system · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-61591 | djust provides Phoenix LiveView-style reactive server-side rendering for…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Rechts: Artikel Ziehen Links: RSS
Hoch: nächster Artikel Runter: zurück / schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Rechts: Original Links: RSS-Ansicht
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick