FIDES: A Concordance Protocol for LLM-Generated Trading Strategies
Organizations: DGrid AI
Abstract
An LLM asked for a trading strategy returns three artifacts at once: a natural-language rationale, an executable implementation, and once run, a track record. Whether these are the same object is rarely checked. We present FIDES, a measurement protocol that treats them as three views to be reconciled rather than one deliverable to be graded. Through dual delivery, a single model call returns both a natural-language strategy with an explicit claimed edge and a self-contained strategy(df) function. FIDES executes the code in a sandbox against a lag-one out-of-sample backtest and scores three concordance gaps: say to do, do to real, and say to result. On 8 liquid US ETFs across four models plus a two-stage elicitation arm, 40 strategies, 2023 to 2024 out-of-sample, three findings stand out. First, concordance does not predict profit: only 2 of 40 strategies beat buy-and-hold, and a plain sma(50,200) rule outperforms every model's mean Sharpe. Second, self-assessment is badly calibrated: 32 of 40 strategies claim to beat buy-and-hold and exactly one does. Third, swapping the language-code judge for a second model flips say to do on more than half of items. Injecting Close.shift(-1) drops do to real by 0.33 on average, while our runtime future-information probe fired on neither clean nor injected code. We frame FIDES as a protocol for measurement fidelity, not a claim about market performance.
Figures & tables
| Control | Mechanism | Role |
|---|---|---|
| Buy-and-hold | always long on the OOS slice | passive benchmark |
| SMA(50,200) | long when SMA50 SMA200, else flat | non-LLM rule |
| Rule say do | lookback-number overlap, zero LLM | say do ceiling |
| Two-stage | prose, then code in a second call | translation control |
| 10 bp cost | one-way cost on | friction robustness |
| Alt window | 2020–2021 OOS | regime robustness |
| Model | say do | do real | say result | OOS Sharpe | pos. dens. | fails |
|---|---|---|---|---|---|---|
| gpt-4.1-mini | 1.000 | 0.917 | 0.000 | 0.290 | 1 | |
| gpt-4o | 0.938 | 1.000 | 0.125 | 0.639 | 0 | |
| gpt-4o-mini | 0.844 | 0.917 | 0.000 | 0.307 | 1 | |
| qwen-2.5-7b | 0.812 | 0.917 | 0.000 | 0.776 | 1 | |
| gpt-4o-mini (two-stage) | 0.812 | 0.750 | 0.500 | 0.001 | 2 |
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
| Parameter | Value |
|---|---|
| universe | SPY, QQQ, IWM, EFA, TLT, GLD, XLF, XLE |
| in-sample (context only) | 2018-01-01 – 2022-12-31 |
| out-of-sample (primary) | 2023-01-01 – 2024-12-31 |
| alt window (ablation) | 2020-01-01 – 2021-12-31 |
| dual models | gpt-4o-mini, gpt-4o, gpt-4.1-mini, qwen-2.5-7b-instruct |
| two-stage arm | gpt-4o-mini (elicitation ablation) |