A research-based stock picker that held up on years it never saw
Statistics pick the stocks, a cheap daily AI call screens their news for red flags, and hard risk limits plus human approval sit between every idea and every order. Everything runs from a live control dashboard.
Growth of $1, 2017–2026: the strategy pulled away from the market and from random picks
Weekly, after 15 bps trading costs per side. Shaded area = out-of-sample period, run once after the strategy was locked.
In-sample vs. out-of-sample
| Strategy 2017–21 | Strategy 2022–26 | Market 2017–21 | Market 2022–26 | |
|---|---|---|---|---|
| Return a year (CAGR) | 17.2% | 12.2% | 13.8% | 0.9% |
| Sharpe ratio | 0.78 | 0.64 | 0.68 | 0.15 |
| Max drawdown | −29.4% | −21.6% | −42.1% | −29.5% |
Full period: 14.6% a year vs. 7.3% for the market. Random portfolios: median 6.0%, 95th percentile 10.3%. Deflated Sharpe ratio 0.89 after 10 configurations tried; turnover 7.4× a year.
Year by year
How it works
Each trading day the agent runs this pipeline. Only step 6 uses AI; everything else is code.
- Update dataDaily prices for ~6,000 stocks on NYSE, NASDAQ and AMEX, including 968 that later delisted.
- FilterDrop ETFs, funds, crypto, SPACs; price under $5; under $5M a day traded; the 150 most-traded names.
- Volatility bandKeep stocks with 10%–80% annualized volatility. Below 10% is usually a pending takeover.
- RankScore = 50% momentum rank + 50% momentum-smoothness rank.
- Build portfolioTop 20, inverse-volatility weights, 10% cap each. Halve exposure if the market is below its 200-day average.
- AI news checkOne cheap call reads the shortlist's last 7 days of headlines and vetoes takeovers, fraud, dilution, binary events.
- Risk check + approvalHard limits in code, then each order waits for a human click. Rebalances about monthly.
The statistical signals
Five signals from published research were tested on 2017–2021 only. Two won and were locked in; the other three stay available as settings at weight 0.
| Signal tested (2017–2021) | Return a year | Sharpe | Status |
|---|---|---|---|
| Momentum + frog-in-the-pan | 18.8% | 0.74 | Chosen |
| Momentum alone | 13.9% | 0.56 | Part of the blend |
| Equal-weight market | 13.5% | 0.67 | Benchmark |
| Short-term reversal | 8.9% | 0.42 | Weight 0 |
| Random picks | 7.3% | — | Baseline |
| Low volatility | 6.1% | 0.47 | Weight 0 |
| 52-week high | 3.1% | 0.26 | Weight 0 |
Volatility controls
- Market regime filter on — exposure × 0.5 when an equal-weight index of liquid stocks is below its 200-day average. In-sample it raised Sharpe 0.74 → 0.78 and cut max drawdown −39% → −29%.
- Portfolio volatility target off — scales exposure to a target volatility. It lowered in-sample Sharpe (0.74 → 0.63), so it ships disabled.
- Inverse-volatility weights — wi = (1/σi) / Σ(1/σj), with σ = 60-day volatility × √252, capped at 10% per stock.
A backtest built not to flatter itself
The backtest uses the exact selection code that trades live, and closes off each common way backtests mislead.
| Bias | Control |
|---|---|
| Look-ahead | Picks use data up to day t's close and trade at day t+1's open. |
| Survivorship | 968 delisted stocks included. A delisted holding takes a −30% (NYSE/AMEX) or −55% (NASDAQ) loss, unless it was trading like a cash takeover. |
| Costs | 15 basis points per side on every dollar traded. |
| Data snooping | Signals from the literature; chosen on 2017–2021; 2022–2026 run once. Every configuration tried is logged. |
| Luck | Same rules with random picks, 30 times, with realistic turnover. The strategy has to beat that distribution. |
| Overfitting | Probabilistic and deflated Sharpe ratios (Bailey & López de Prado) correct for fat tails and the number of trials. |
How the AI is used — and why it doesn't pick stocks
A language model trained on past data already knows how past stocks turned out, so any backtest of its picks has look-ahead bias. Here the AI is a cheap risk filter that is measured going forward instead.
- ~30 stocks: the shortlist plus current holdings
- Up to 6 headlines each from the last 7 days
- One
gpt-5-minicall, low effort, strict JSON output - Vetoed stocks are replaced by the next-ranked one
- Every flag is logged, and a scorecard tracks the stock's later return
- At most 1 automatic news check a day (≈ $0.004)
- Intraday AI reviews off by default
- $5 daily spend cap
- Circuit breaker: 3 failures pause the AI for 5 minutes
- Every call's tokens and cost shown live
| Verdict | Triggered by | Effect |
|---|---|---|
| veto | Agreed cash takeover, bankruptcy or default, fraud or SEC/DOJ probe, delisting notice, large new-share sale, trading halt, FDA decision or trial readout within ~2 weeks | Removed |
| caution | Guidance cut, major customer loss, insider selling, clustered downgrades, holders selling in a secondary offering | Shown |
| ok | Nothing material, or positive news | — |
The control dashboard
A local web app: watch every decision, approve or decline each order, change any setting live, and re-run the backtest.



Risks and limitations
- Sector concentration: momentum clusters by theme; current picks lean toward shipping and tankers, with no sector cap yet.
- Some survivorship bias remains: a few dead companies are missing from the data.
- Expect decay: published anomalies lose about a third of their returns after publication (McLean & Pontiff).
- Momentum crashes: sharp rebounds hurt momentum; the market filter reduces but doesn't remove this.
- The AI filter is unproven until its forward scorecard has months of data.
Paper trading only — no real money. Past and backtested performance do not guarantee future results, and nothing here is investment advice.