By lucemia
Multi-agent trading analysis pipeline — technical, news, fundamentals, macro, adversarial bull/bear debate, and a final BUY/SELL/HOLD decision. Powered by yfinance, no external LLM API cost.
Multi-agent trading analysis as a Claude Code plugin — powered entirely by your Claude subscription, no external LLM API cost.
/plugin marketplace add lucemia/trading-agents-plugin
/plugin install trading-agents-plugin
Then install the Python data dependency (fetches market data via yfinance):
git clone https://github.com/lucemia/trading-agents-plugin
cd trading-agents-plugin
uv sync # or: pip install yfinance pandas
/trading-analysis NVDA
/trading-analysis GOOG
/trading-analysis SOXL
Phase 1 (parallel): Technical + News + Fundamentals + Macro analyst
Phase 2 (sequential): Bull → Bear rebuts Bull directly → Risk Analyst stress-tests both
Phase 3: Research Manager synthesizes all three voices
Phase 4: Trader sets entry / stop / size anchored to technicals
Phase 5: Portfolio Manager → final BUY / SELL / HOLD
7 subagents total. Each phase uses Claude Code's native Agent tool. Data is fetched for free via yfinance — no OpenAI, Anthropic, or any other LLM API key required.
| Analyst | Coverage |
|---|---|
| Technical | EMA10/SMA50/SMA200 trend, RSI14, MACD, Bollinger Bands, ATR, key support/resistance |
| News | Top headlines, sentiment, sector tailwinds/headwinds, earnings signals |
| Fundamentals | P/E, forward P/E, PEG, P/B, revenue/earnings growth, margins, ROE, FCF, D/E ratio, current ratio, beta, short ratio, quarterly income/balance sheet statements, analyst consensus |
| Macro | S&P 500, 10Y Treasury, gold, oil news — geopolitical/monetary policy signals |
| Bull | Strongest buy case using all Phase 1 data |
| Bear | Directly rebuts Bull's specific claims with data |
| Risk | Stress-tests both sides — crowding risk, beta drawdown scenarios, tail risks neither Bull nor Bear addressed |
TICKER: NVDA
DATE: 2026-05-02
SIGNAL: BUY
RATING: Overweight
ENTRY: $197–$199 (tranche 1); $188–$190 (tranche 2 if macro deteriorates)
STOP: $183 (below SMA200)
SIZE: 2–3% of portfolio initial; reserve 2% for second tranche
BULL: PEG 0.18, FCF $58.1B, net cash $51B, and 57 analysts pricing in 35% upside —
NVDA's AI dominance is structurally mispriced.
BEAR: Beta 2.33 in RISK-OFF macro with crowded longs means a guidance miss could
trigger a 20%+ unwind against a 30.7x P/B backdrop.
VERDICT: Bull wins on fundamentals — no operational weakness identified. Risk Analyst
flagged crowding and ~23% beta drawdown scenario, reducing sizing to 2–3%
initial with staged second entry near SMA50.
If you prefer not to use the plugin system:
git clone https://github.com/lucemia/trading-agents-plugin
cd trading-agents-plugin
uv sync
mkdir -p ~/.claude/commands
cp .claude/commands/trading-analysis.md ~/.claude/commands/
Then update the script path in ~/.claude/commands/trading-analysis.md to match your local clone path.
Inspired by TradingAgents — a multi-agent LLM trading framework by Tauric Research. This project adapts their analyst pipeline design as a native Claude Code plugin, replacing the LangGraph/OpenAI stack with Claude's built-in Agent tool and yfinance for free market data.
MIT
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub lucemia/trading-agents-plugin --plugin trading-agents-pluginAnalyze Claude Code session JSONL logs for quality metrics — thinking depth, Read:Edit ratio, behavioral signals, sentiment, and cost. Replicates methodology from anthropics/claude-code#42796.
Parallel agent loop for trading strategy research — baseline → hypotheses → agents → insights → repeat
Comprehensive skill pack with 66 specialized skills for full-stack developers: 12 language experts (Python, TypeScript, Go, Rust, C++, Swift, Kotlin, C#, PHP, Java, SQL, JavaScript), 10 backend frameworks, 6 frontend/mobile, plus infrastructure, DevOps, security, and testing. Features progressive disclosure architecture for 50% faster loading.
Upstash Context7 MCP server for up-to-date documentation lookup. Pull version-specific documentation and code examples directly from source repositories into your LLM context.
Comprehensive startup business analysis with market sizing (TAM/SAM/SOM), financial modeling, team planning, and strategic research
v9.44.1 — Patch release for Gemini environment/version detection and qwen auth gating. Run /octo:setup.
Complete creative writing suite with 10 specialized agents covering the full writing process: research gathering, character development, story architecture, world-building, dialogue coaching, editing/review, outlining, content strategy, believability auditing, and prose style/voice analysis. Includes genre-specific guides, templates, and quality checklists.
Comprehensive .NET development skills for modern C#, ASP.NET, MAUI, Blazor, Aspire, EF Core, Native AOT, testing, security, performance optimization, CI/CD, and cloud-native applications