TL;DR
EvolveTrade is a self-evolving framework for Large Language Model (LLM) trading agents that treats the system prompt as a text-parameterized policy. By periodically updating this prompt using past decision traces and realized portfolio returns, the agent dynamically adapts its tool-use and risk management strategies to changing market regimes without retraining the underlying model weights.
What Problem Does This Paper Address?
Financial markets are notoriously non-stationary, shifting rapidly between sideways movement, sharp drawdowns, and steady uptrends. While recent work has equipped LLM trading agents with external tools (like price retrieval APIs and code interpreters), their operational workflows are governed by static, hand-written system prompts fixed at deployment.
The authors demonstrate that a static prompt locks the LLM into a rigid "analytic vocabulary." For instance, a standard fixed-prompt agent will calculate the exact same set of metrics (e.g., 20-day returns, basic Sharpe ratio) regardless of whether the market is experiencing a massive crash or a bull run. It cannot inherently realize when it needs to pivot its strategy—such as switching to tail-risk metrics during a drawdown or trend-following indicators during an uptrend.
Methods
EvolveTrade introduces an online, experience-driven prompt optimization loop that splits the architecture into two distinct roles:
- The Trading Agent: Executes daily portfolio allocations. Guided by the current text policy (system prompt $\pi_t$), it actively calls tools (price APIs, news search, Python code interpreter) to generate a portfolio weight distribution and a per-asset rationale.
- The Policy Agent: A separate LLM instance tasked with meta-optimization. Every $N$ trading days, it reviews the accumulated decision traces alongside the actual realized portfolio returns. It identifies procedural weaknesses (e.g., over-reliance on short-term news without price confirmation) and rewrites the system prompt ($\pi_{t+1}$) to introduce new behavioral rules, risk constraints, or tool-use strategies.
Throughout this process, the underlying LLM weights and tool interfaces remain completely frozen. The framework optimizes purely in the space of natural language instructions.
Datasets
The framework was evaluated using a daily-close simulation environment based on the LiveTradeBench framework.
- Investment Universe: 15 major US blue-chip stocks (e.g., AAPL, MSFT, NVDA, JPM) and a cash component.
- Evaluation Windows: To ensure robust generalization, the authors tested the agents across distinct, post-cutoff market regimes using two different backbones:
- GPT-5-mini: Evaluated on January 2025 (sideways), April 2025 (drawdown-recovery), and September 2025 (uptrend).
- Gemini-2.5-Flash: Evaluated on November 2025 (bearish), February 2026 (sideways), and April 2026 (bullish).
Key Insights and Ideas
- Regime-Activated Vocabulary: Instead of using the same analytical tools everywhere, self-evolution allows the agent to dynamically activate latent capabilities. Under EvolveTrade, the agent naturally began invoking Value at Risk (VaR) and signal normalization during market drawdowns, while shifting to EMA, RSI, and SMA indicators during strong uptrends.
- Instruction Consolidation: One might worry that continuous prompt editing would lead to an infinitely expanding, unreadable prompt. However, tracking the prompt length revealed a non-monotonic pattern: the prompt grows as new rules are added, but periodically contracts as the Policy Agent automatically consolidates redundant instructions.
- Moderate Update Intervals Win: Testing the sensitivity of the update window ($N$) showed a clear trade-off. Updating the policy daily ($N=1$) caused overfitting to short-term market noise, leading to poor returns. A 5-day batch interval provided the optimal balance between adaptation and stability.
Key Results
- Superior Risk-Adjusted Returns: EvolveTrade consistently outperformed fixed-policy LLM baselines. For example, using GPT-5-mini in the September 2025 uptrend, EvolveTrade achieved a Cumulative Return (CR) of 6.84% and a Sharpe Ratio (SR) of 8.43, outperforming the Static Tool-Calling Agent (CR: 4.86%, SR: 6.45%).
- Friction Robustness: The performance gains survived realistic trading frictions, retaining the highest SR and CR even after applying a 10 basis point transaction cost to all traded volume.
- Proactive Risk Mitigation: In a case study during a sharp NVDA drawdown in January 2025, EvolveTrade's refined policy successfully detected elevated volatility and cut its NVDA exposure to 2.9% (compared to the static baseline's 10.7%) right before the stock plummeted 17% in a single day.
Limitations and Future Work
While powerful, the current implementation keeps the policy-update interval ($N$) fixed throughout the entire trading horizon. The authors note that dynamically scheduling updates—triggering a policy revision only when a significant market regime shift is detected—is a promising avenue for future research. Furthermore, the backtesting environment does not currently simulate market impact, slippage, or strict liquidity constraints, which would be necessary for real-world deployment.
Summary updated