---
title: Trading Strategy Optimization via Textual Gradient
url: https://www.ml-quant.com/papers/arxiv/2610.03128/
site: ML-Quant (https://www.ml-quant.com)
updated: 2026-11-21
license: Summaries CC BY 4.0; links go to the original sources
index: https://www.ml-quant.com/llms.txt
identifier: arXiv:2610.03128
source_url: https://arxiv.org/abs/2610.03128
featured: 2026-10-09
citations: 0
topic: ML & AI Methods
---


# Trading Strategy Optimization via Textual Gradient

Proposes an LLM-guided framework for trading strategy refinement using accumulated experience and cross-period robustness, achieving 27.99% annualized return on Chinese equities with 1.63 Sharpe ratio.

- Source: https://arxiv.org/abs/2610.03128
- Identifier: arXiv:2610.03128
- Released: 2026-10-05
- First featured: Quant Letter No. 134 (2026-10-09): https://www.ml-quant.com/issues/2026-10-09/
- Citations (Semantic Scholar): 0
- Published in: not yet
- Topic: ML & AI Methods
- Authors: Chaoqun Yang, Qian Wang, Fengbin Zhu, Xinyu Lin, Bingsheng He, Roger Zimmermann, Tat-Seng Chua

## Abstract (arXiv, CC0)

Quantitative trading strategy design aims to discover trading programs from historical data that remain effective in future markets, which can be viewed as a black-box program optimization problem. LLM-based textual gradients offer a promising approach by providing explicit optimization directions for iterative strategy refinement. However, directly applying textual gradients faces two challenges: (1) optimization is myopic, underutilizing experience from previous evaluations; and (2) aggregate backtest feedback overlooks temporal robustness, potentially favoring strategies that perform well only in specific market periods. To address these challenges, we propose TradeGrad, an experience-guided textual-gradient framework for robust trading strategy optimization. TradeGrad leverages accumulated optimization experience to estimate textual gradients and employs multi-scale revisions for both strategy exploration and refinement. It further introduces the Cross-Period Robust Objective (CPRO), which emphasizes performance in unfavorable historical periods to promote temporal robustness. Experiments on cross-sectional and time-series strategy design in Chinese A-share and U.S. equity markets show that TradeGrad achieves the best in-sample and out-of-sample performance across all four settings. Notably, its Chinese cross-sectional strategy achieves 27.99% annualized return, 12.19% maximum drawdown, and a Sharpe ratio of 1.63, approximately 68% higher than the CSI 300 benchmark. Further analyses validate the proposed components and show consistent improvements in both in-sample and out-of-sample performance throughout optimization. The code is available at https://github.com/transcend-0/TradeGrad.

## Related

- [Propose, Don't Judge: An Anytime-Valid Referee for LLM Agents That Mine Investment Factors](https://www.ml-quant.com/papers/arxiv/2609.27051/): Proposes a statistical referee that judges investment factors proposed by language-model agents using out-of-sample market outcomes, ensuring false-discovery control at any stopping time.
- [Does Autonomous Quant Research Improve? Leakage, Evidence Scarcity and Forward Tests in an LLM Factor-Discovery Loop](https://www.ml-quant.com/papers/ssrn/7555699/): An autonomous agent evolved 940 factors over 17 days and finds that reusing backtest data inflates edge by a quarter to a third and in-sample improvement predicts worse performance.
- [Can AI Make Money in Crypto? Measuring the Gap from Backtests to Real Markets](https://www.ml-quant.com/papers/arxiv/2609.34510/): A benchmark compares machine learning, reinforcement learning, and large language model trading methods across historical backtests, paper trading, and live markets to measure the gap.
- [EvoQuantLab: Training-Free Dual-Loop Evolution for Auditable Quantitative Research](https://www.ml-quant.com/papers/arxiv/2610.17130/): A training-free framework combines genetic programming and LLM diagnosis loops to discover robust alpha factors across daily and hourly frequencies in equities and cryptocurrency.
- [Do AI Models Remember Indian Company Financials? Evidence on Look-Ahead Bias by Firm Size](https://www.ml-quant.com/papers/ssrn/7666459/): Large language models recall Indian firm financials from within their training data with accuracy that declines sharply for smaller firms, creating serious look-ahead bias in LLM-based backtests.
- [FinCutBench: A Continually Updated Benchmark for Measuring the Temporal Boundaries of LLM Financial Knowledge](https://www.ml-quant.com/papers/arxiv/2611.11588/): Introduces FinCutBench, a monthly updated benchmark measuring parametric knowledge boundaries in financial LLMs, tracking 9,000 questions from 2023 to 2026 to detect look-ahead bias.
