Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
IT Security Toolsholos v0.6.3(21.09.2026 um 12:28 Uhr)
IT Security NachrichtenSAML: A fractal of bad design(21.09.2026 um 13:00 Uhr)
Malware / Trojaner / VirenMacSync-Variante: Kaspersky warnt vor neuem macOS-Infostealer - BornCity(21.09.2026 um 11:12 Uhr)
IT Security NachrichtenShinyHunters hacks rival extortion gang and takes over its dark web site(21.09.2026 um 13:02 Uhr)
IT Security NachrichtenUS and China Discuss Alerting Each Other to AI National Security Threats(21.09.2026 um 13:02 Uhr)
IT Security Toolsholos v0.6.3(21.09.2026 um 12:28 Uhr)
IT Security NachrichtenSAML: A fractal of bad design(21.09.2026 um 13:00 Uhr)
Malware / Trojaner / VirenMacSync-Variante: Kaspersky warnt vor neuem macOS-Infostealer - BornCity(21.09.2026 um 11:12 Uhr)
IT Security NachrichtenShinyHunters hacks rival extortion gang and takes over its dark web site(21.09.2026 um 13:02 Uhr)
IT Security NachrichtenUS and China Discuss Alerting Each Other to AI National Security Threats(21.09.2026 um 13:02 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…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

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-94040 | A flaw has been found in vas3k TaxHacker up to 0.8.5. Affected by this v…
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

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
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.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick