---
name: tradingagents-equity-analysis
description: Use when running a multi-agent stock analysis: analyst team, bull/bear debate, trader, risk team and portfolio manager end in one rated decision.
---
# TradingAgents Multi-Agent Equity Analysis
## What this does
Mirrors a trading firm with LLM agents: an analyst team (fundamentals, sentiment, news, technical) works at the same time, bullish and bearish researchers debate, a trader drafts the decision, and a risk team plus portfolio manager approve or reject it.
## When to use
- The user wants one ticker (or crypto pair) evaluated from several perspectives in one run.
- The user wants those decisions scored over time on a ticker/date grid.
## How to run it
1. **Analyst team** - Fundamentals Analyst (financials and red flags), Sentiment Analyst (news headlines, StockTwits, Reddit), News Analyst (global news and macro), Technical Analyst (MACD, RSI, price patterns). They run in parallel, each on its own tools; the debate starts once all their reports are in.
2. **Researcher team** - bull and bear researchers critique the analyst insights in structured debate, balancing potential gains against inherent risks.
3. **Trader agent** - composes analyst and researcher reports into a decision on timing and magnitude.
4. **Risk and portfolio** - the risk team assesses volatility and liquidity and reports; the Portfolio Manager approves or rejects the proposal, and approved orders go to the simulated exchange.
5. **Memory** - each completed run appends its decision to the memory log; while the next run's analysts work, past decisions whose holding period has passed are settled with realized return and alpha, and the Portfolio Manager reads recent decisions for the same ticker plus lessons from other tickers.
## Setup and run (creator's steps)
```
git clone https://github.com/TauricResearch/TradingAgents.git
cd TradingAgents
pip install .
tradingagents
```
Non-interactive run:
```
tradingagents --ticker NVDA --date 2026-09-23 --analysts market,news,fundamentals --save --no-show
```
Use exchange-suffixed tickers for non-US markets: `0700.HK`, `7203.T`, `AZN.L`, `600519.SS`, `BTC-USD`.
## Python usage
```
from tradingagents.graph.trading_graph import TradingAgentsGraph
from tradingagents.default_config import DEFAULT_CONFIG
ta = TradingAgentsGraph(debug=True, config=DEFAULT_CONFIG.copy())
state, decision = ta.propagate("NVDA", "2026-09-01")
print(decision)
```
With the user's own book, so the trader and risk analysts work against real positions:
```
from tradingagents.portfolio import PortfolioContext
portfolio = PortfolioContext.model_validate({
"cash": 25000.0,
"currency": "USD",
"positions": [{"ticker": "NVDA", "quantity": 120, "average_price": 150.0}],
})
_, decision = ta.propagate("NVDA", "2026-09-01", portfolio=portfolio)
```
CLI equivalent: `tradingagents --portfolio my_book.json`
## Evaluating decisions over time
```
tradingagents backtest NVDA,AAPL --start 2026-06-01 --end 2026-08-01 --every 7
```
Each cell is scored on realized alpha against the instrument's regional benchmark, grouped by rating.
## Output
Hand back the decision and rating, the four analyst reports, the bull/bear debate, the risk assessment, and (for backtests) realized alpha per rating. Note that two runs of the same ticker and date can differ because sampling and live news are non-deterministic, and that this is a research scaffold, not financial advice.
Based on public content by tauricresearch, packaged by Orbit.