Papers · arXiv 2412.20138
TradingAgents: Multi-Agents LLM Financial Trading Framework
Published q-fin.TRcs.AIcs.CEcs.LG arXivPDF
Summary in three lines
- 🎯 Existing LLM trading tools lack realistic organizational structures and suffer from 'telephone effect' information distortion in long unstructured dialogues.
- 🔧 Simulates a real-world trading firm with 7 specialized agent roles across Analyst, Researcher, Trader, Risk Management, and Fund Manager tiers using structured reports and targeted debates.
- 📈 Outperformed Buy & Hold and rule-based baselines across tested assets, attaining 26.62% cumulative return on AAPL and at least 23.21% across evaluated tech stocks over Q1 2024.
Abstract
Significant progress has been made in automated problem-solving using societies of agents powered by large language models (LLMs). In finance, efforts have largely focused on single-agent systems handling specific tasks or multi-agent frameworks independently gathering data. However, the multi-agent systems' potential to replicate real-world trading firms' collaborative dynamics remains underexplored. TradingAgents proposes a novel stock trading framework inspired by trading firms, featuring LLM-powered agents in specialized roles such as fundamental analysts, sentiment analysts, technical analysts, and traders with varied risk profiles. The framework includes Bull and Bear researcher agents assessing market conditions, a risk management team monitoring exposure, and traders synthesizing insights from debates and historical data to make informed decisions. By simulating a dynamic, collaborative trading environment, this framework aims to improve trading performance. Detailed architecture and extensive experiments reveal its superiority over baseline models, with notable improvements in cumulative returns, Sharpe ratio, and maximum drawdown, highlighting the potential of multi-agent LLM frameworks in financial trading. TradingAgents is available at https://github.com/TauricResearch/TradingAgents.
Reading guide
Problem and motivation
Traditional quantitative trading algorithms often struggle to synthesize unstructured textual data such as news headlines, corporate earnings reports, and social media sentiment. Meanwhile, deep learning trading models operate as black boxes, suffering from low interpretability. While Large Language Models (LLMs) offer natural language understanding and explainability, previous LLM-based financial systems typically deploy single agents or unstructured multi-agent setups. These setups suffer from two major flaws: they lack the organizational modeling of actual trading firms, and they rely on open-ended natural language chat logs that degrade through a 'telephone effect,' where critical context is lost or corrupted over long horizons.
Key ideas
- Organizational Hierarchy: TradingAgents mirrors a Wall Street investment firm divided into specialized divisions: an Analyst Team, a Researcher Team, Trader Agents, a Risk Management Team, and an ultimate Fund Manager.
- Dialectical Multi-Agent Debates: Instead of unilateral decisions, the framework runs structured multi-round debates between Bullish and Bearish researchers, as well as multi-perspective discussions among aggressive, safe, and neutral risk managers.
- Hybrid Communication Protocol: The system avoids continuous, unstructured text pools by recording agent states as standardized, structured reports and data entries, reserving natural language dialogue solely for multi-turn debates.
- Model Tiering: Fast, lower-cost models (
gpt-4o,gpt-4o-mini) handle data retrieval and formatting, while deep-thinking reasoning models (o1-preview) power in-depth analysis, debate, and trade sizing.
Method (with the key equations)
All agents operate using the ReAct (Reasoning and Acting) paradigm with access to specialized external tools (e.g., Yahoo Finance, EODHD, Finnhub, Reddit). Agent actions proceed in five sequential stages:
- Analyst Team: Four concurrent agents generate structured reports across Company Fundamentals, Social Sentiment, News/Macroeconomics, and Technical Indicators (evaluating up to 60 indicators such as RSI, MACD, Bollinger Bands, ATR, ADX).
- Researcher Team: Bullish and Bearish researcher agents query the analyst reports and debate for rounds under the supervision of a Facilitator Agent, who selects the prevailing stance.
- Trader Execution: The Trader agent synthesizes researcher insights and market data to generate target buy/sell/hold decisions and rationale.
- Risk Management Deliberation: Risk-seeking ('Risky'), conservative ('Safe'), and neutral analysts debate the portfolio exposure, leverage, and stop-loss needs over rounds.
- Fund Manager Approval: The final manager approves, modifies, or rejects trade execution based on the risk team's synthesized guidance.
Portfolio performance is measured via four key financial metrics:
- Cumulative Return (CR):
- Annualized Return (AR): where is the evaluation period in years.
- Sharpe Ratio (SR): where is the average portfolio return, is the risk-free rate, and is the return volatility.
- Maximum Drawdown (MDD):
Results (with the most important numbers)
The backtesting simulation ran from January 1 to March 29, 2024, without look-ahead bias across major tech equities ($AAPL, $GOOGL, $AMZN) against Buy & Hold and technical strategies (MACD, KDJ+RSI, ZMR, SMA):
- AAPL: TradingAgents achieved a cumulative return (CR) of 26.62% (ARR of 30.50%, Sharpe Ratio of 8.21, and MDD of 0.91%), whereas Buy & Hold yielded -5.23% (MDD 11.90%) and the best baseline (KDJ&RSI) gained only 2.05%.
- GOOGL: TradingAgents reached a CR of 24.36% and SR of 6.39 (MDD 1.69%), outperforming Buy & Hold (7.78% CR, 13.04% MDD).
- AMZN: TradingAgents achieved 23.21% CR and 5.60 SR (MDD 2.11%), beating Buy & Hold (17.10% CR, 3.80% MDD).
- Balanced Risk Control: Despite high return generation, maximum drawdowns remained strictly controlled under 2.11% across all stocks due to active intervention by the Risk Management Team.
Limitations and open questions
- High Computation/API Cost: Single-day predictions require roughly 11 LLM calls and over 20 tool calls, which limited the backtest simulation window to 3 months.
- Extreme Sharpe Ratios: The exceptionally high Sharpe ratios (>5.60 to 8.21) reflect a testing period with virtually no sharp pullbacks for the system, highlighting the need for multi-year testing across full market cycles and bear regimes.
- Execution Friction: The framework assumes clean signal fills without modeling slippage, market impact, exchange latency, or transaction commission drag in live order books.
Key terms
- TradingAgents
- A multi-agent financial trading framework powered by LLMs that models the hierarchical roles, analytical workflows, and risk controls of professional trading firms.
- ReAct prompting framework
- A method synergizing reasoning ('thought') and acting ('tool calls'), enabling LLM agents to iteratively inspect environmental data, query APIs, and execute decisions.
- Telephone effect
- The degradation, context-length saturation, and factual corruption that occurs when multiple agents communicate solely through extended, unstructured natural language chat logs.
- Analyst Team
- A group of four specialized agents—Fundamental, Sentiment, News, and Technical Analysts—that independently gather multimodal market signals and output structured reports.
- Researcher Team
- A pair of opposing Bullish and Bearish agents who engage in multi-turn debate over analyst findings, supervised by a facilitator that outputs a balanced synthesis.
- Risk Management Team
- A team composed of aggressive, conservative, and neutral risk analysts that debate portfolio exposures, volatility, and stop-loss criteria before a Fund Manager finalizes order execution.
- Cumulative Return (CR)
- The percentage gain or loss in total portfolio value from the start to the end of the simulation period.
- Maximum Drawdown (MDD)
- The maximum peak-to-trough percentage decline observed in portfolio equity over a specific time horizon.
Questions
Which LLMs are used as the backbones for TradingAgents?
The framework utilizes a tiered approach: quick-thinking models like gpt-4o and gpt-4o-mini handle data retrieval and formatting, while reasoning models like o1-preview power the analyst reports, researcher debates, trader signals, and risk team deliberations.
How does TradingAgents solve the communication loss seen in chat-based multi-agent systems?
It replaces open-ended message history chains with a structured communication protocol. Agents publish and read concise, structured reports stored in a global state, restricting natural language conversations exclusively to focused, bounded multi-turn debates.
Why were Sharpe ratios so high during the backtests?
The authors noted Sharpe ratios ranging from 5.60 to 8.21 across a 3-month evaluation window (January to March 2024), explaining that TradingAgents experienced almost zero pullbacks during that specific backtest window.
What data sources does the framework ingest?
The system ingests daily OHLCV prices, 60 technical indicators, SEC financial reports, insider transactions, news articles via EODHD/Finnhub/Bloomberg, and social media posts from Reddit and X/Twitter.
The overview on this page was written by AI from the paper and may contain mistakes. Read the paper for the details.