All projects

15 / Ventures & FinanceStock Market

EVE: Breakout Strategy with a Regime Shield

A breakout stock strategy with a market-regime shield, researched over 24 years of data and traded live · December 2025 – present

Line chart of a backtested strategy rising above an index
Overview

Strategy overview

EVE is a long-only strategy for US stocks. It buys shares that break out to a multi-year high on unusually heavy volume after a long quiet period, holds them while the trend lasts, and tightens its exit once a position has made a large gain. Idle cash sits in an S&P 500 index fund.

A “regime shield” is applied on top: a daily score built from the index’s trend and from market volatility. When the score is weak, EVE stops buying. When it is very weak, EVE sells everything and stays out.

I have researched it for ten months and traded it with real money since January 2026.

EVE is an active strategy. Entry and exit thresholds, the regime formula, parameters and account sizes are not shown.

01 · Backtest

Backtest results

In the backtest EVE beats the index in only 13 of 25 years. Its advantage comes from smaller losses in the index’s down years, not from larger gains in ordinary years: it was roughly flat or up in 2002, 2008 and 2018 while the index fell, and its worst drawdown was about a third of the index’s. A few strong years (2007, 2013 and 2024 to 2026) supply much of the rest.

Growth of 1 · EVE backtest against the S&P 500 with dividends · linear scale · January 2002 – October 2026 · in-sample
Linear-scale line chart of the growth of one unit from 2002 to 2026. The EVE backtest ends at about 45.6 times its start; the S&P 500 total return ends at about 10.4 times.
Growth of 1 · EVE backtest against the S&P 500 with dividends · log scale · January 2002 – October 2026 · in-sample
Log-scale line chart of the growth of one unit from 2002 to 2026. The EVE backtest rises to about 45.6 times its start with shallow dips; the S&P 500 total return rises to about 10.4 times with deep falls in 2008 and 2022.
Calendar-year returns · EVE backtest against the S&P 500 with dividends · 2026 is to October 20 · in-sample
Grouped bar chart of yearly returns from 2002 to 2026 for the EVE backtest and the S&P 500. EVE is slightly negative in 2002, 2004, 2011 and 2022 and positive in 2008, when the index lost about 37 percent.
Backtest, January 2002 to October 2026, dividends included. “In-sample” means the parameters were chosen using this same period, so these figures overstate what to expect.
RunReturn per yearSharpeWorst drawdownNote
EVE, before tax, 5 bp slippage16.7%1.03−18.8%In-sample: the headline figure
EVE, after tax, 10 bp slippage13.3%0.95−18.8%In-sample: my “realistic” case
S&P 500 total return, before tax9.9%0.59−55.2%Benchmark
02 · Parameter optimization

Bayesian parameter optimization

The strategy’s parameters were searched with Bayesian optimization, using the Tree-structured Parzen Estimator (TPE) in Optuna, inside a walk-forward study. At each quarterly retrain date the optimizer searched all 15 parameters jointly on a trailing training window, with the after-tax return relative to worst drawdown as the objective. Each parameter was restricted to a discrete set of values, and the first 60 trials of every search were random before the sampler took over.

The earlier studies sampled the same kind of discrete grid at random: 512 and 1,024 parameter sets drawn from grids of 31.5 million, 84.7 million and 24.4 billion combinations. The full sweep ran as a resumable process pool that logged every trial to disk, so a crash or a pause lost no work.

  • 15Parameters searched jointly, each over a discrete set of values
  • 300Optimizer trials per search, one search per walk-forward fold
  • 3,503Folds: seven training-window lengths across 100 quarterly retrain dates
  • 1,050,900Trials in total, about 8.6 days of continuous compute
03 · Live trading

Live trading system

  • Scanner

    Evening full-market scan

    Syncs daily prices for about 6,900 common stocks, including delisted ones, and finds the day’s qualifying breakouts for the next open.

  • Regime

    Daily market score

    Scores the market from the S&P 500’s trend and the volatility index. A weak score blocks new entries; a very weak one sells everything.

  • Executor

    Signals and orders

    Posts signals as push notifications, places resting stop orders through the Schwab API and sweeps idle cash into an index fund. All trades are automated.

  • Dashboard

    Shared database view

    A Streamlit dashboard reads the same SQLite database the other three services write, showing positions, signals and regime state.

Timeline

Research and live trading timeline

  1. Dec 2025

    Research begins.

  2. Jan 2026

    First live trades in one account, then two.

  3. Mar – Apr

    A second parameter generation goes live after a round of studies.

  4. Jul 30

    The current parameter set is chosen from a 1,024-configuration search and deployed.

  5. Oct

    After-tax, two-account and cost studies. Two regime changes adopted.

  6. Nov

    Still running live.

Backtest figures are simulated and in-sample unless stated. Past performance does not predict future results. Nothing here is investment advice.