AI-assisted paper trading

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.

12.2%
a year, 2022–2026 out-of-sample
market: 0.9% a year
0.64
Sharpe ratio, out-of-sample
market: 0.15
30 / 30
random portfolios beaten
same rules, random picks
$0.004
AI cost per day
one gpt-5-mini call

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.

Strategy Equal-weight market Random picks, median Random picks, 5th–95th percentile

In-sample vs. out-of-sample

Strategy 2017–21Strategy 2022–26Market 2017–21Market 2022–26
Return a year (CAGR)17.2%12.2%13.8%0.9%
Sharpe ratio0.780.640.680.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.

  1. Update dataDaily prices for ~6,000 stocks on NYSE, NASDAQ and AMEX, including 968 that later delisted.
  2. FilterDrop ETFs, funds, crypto, SPACs; price under $5; under $5M a day traded; the 150 most-traded names.
  3. Volatility bandKeep stocks with 10%–80% annualized volatility. Below 10% is usually a pending takeover.
  4. RankScore = 50% momentum rank + 50% momentum-smoothness rank.
  5. Build portfolioTop 20, inverse-volatility weights, 10% cap each. Halve exposure if the market is below its 200-day average.
  6. AI news checkOne cheap call reads the shortlist's last 7 days of headlines and vetoes takeovers, fraud, dilution, binary events.
  7. 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.

12-1 momentumweight 0.5
MOM = P(t−21) / P(t−252) − 1
Return from 12 months ago to 1 month ago. The latest month is skipped because very recent winners briefly reverse. Jegadeesh & Titman (1993).
Frog-in-the-pan smoothnessweight 0.5
FIP = −sign(MOM) × (%down days − %up days)
Rewards trends built from many small gains rather than a few jumps; investors under-react to gradual news. Da, Gurun & Warachka (2014).
Signal tested (2017–2021)Return a yearSharpeStatus
Momentum + frog-in-the-pan18.8%0.74Chosen
Momentum alone13.9%0.56Part of the blend
Equal-weight market13.5%0.67Benchmark
Short-term reversal8.9%0.42Weight 0
Random picks7.3%—Baseline
Low volatility6.1%0.47Weight 0
52-week high3.1%0.26Weight 0

Volatility controls

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.

BiasControl
Look-aheadPicks use data up to day t's close and trade at day t+1's open.
Survivorship968 delisted stocks included. A delisted holding takes a −30% (NYSE/AMEX) or −55% (NASDAQ) loss, unless it was trading like a cash takeover.
Costs15 basis points per side on every dollar traded.
Data snoopingSignals from the literature; chosen on 2017–2021; 2022–2026 run once. Every configuration tried is logged.
LuckSame rules with random picks, 30 times, with realistic turnover. The strategy has to beat that distribution.
OverfittingProbabilistic 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.

The daily news check
  • ~30 stocks: the shortlist plus current holdings
  • Up to 6 headlines each from the last 7 days
  • One gpt-5-mini call, 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
Cost controls
  • 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
VerdictTriggered byEffect
vetoAgreed 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 weeksRemoved
cautionGuidance cut, major customer loss, insider selling, clustered downgrades, holders selling in a secondary offeringShown
okNothing 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.

Scanner tab: ranked picks with AI news verdicts and volatility settings
Scanner — today's ranked picks, the AI's news verdicts, and strategy settings.
Backtest tab: strategy vs market vs random portfolios chart and statistics
Backtest — one click re-tests any settings change against the market and random picks.
Live tab: account equity, price chart and orders waiting for approval
Live — account, prices, and rebalance orders waiting for approval.

Risks and limitations

Paper trading only — no real money. Past and backtested performance do not guarantee future results, and nothing here is investment advice.