Investment strategy backtester

18 stock models & ETFs · $100,000 initial investment · 2006–2025
Preliminary historical research, not validated investment results. Stock selection uses approximate archived annual market-cap rankings and adjusted-close returns. No trading costs, taxes or cash interest. ETF histories start at inception/available data. Annual dollar gains reflect a fresh $100,000 starting balance for the selected lookback and then compound through time.
Selected total gain
Ending valueFrom $100,000
Annualized return (CAGR)Selected period
Max month-end drawdownSelected period

Strategy research terminal

Interactive equity analysis · historical monthly observations
RESEARCH · NOT TRADE EXECUTION

Monthly return calendar

Red indicates negative months. Percent return per calendar month, not annualized.

Portfolio rebalance / membership events

Membership and turnover observations are not actual broker fills or realized tax lots.

Monthly gains and losses

Click any strategy in the comparison table to change this chart
GainLoss

Annual performance by strategy

Each column compares the same calendar year across strategies; darker green = top performer for that year
1st2nd3rdLossClick a row to select its monthly chart · click a year to sort

Full strategy comparison

Click a strategy to inspect its monthly performance above
StrategyTypeTotal gainCAGR$100K becomesMax drawdownAvg monthly turnover
Source: GitHub Actions expanded backtest artifact (run 45046428299), including original month-end equity CSVs for every strategy. Model and ETF values are independently normalized to $100,000 at the selected period start; their monthly percentage changes are not annualized. Through December 2025. Not financial advice.

Strategy rulebook · 18 models explained

Selection universe · precise signals · rebalancing · live replication limits
A · Top 3 market cap, monthly

Universe and inputs

S&P 500 constituents, rank by market capitalization = share price × shares outstanding. Select the top THREE, equal weight 33.33% each.

Signals, holdings and refresh

Re-evaluate stock membership and equal weights at every month end. No price trend filter.

Reproduce it and check limitations

Research uses prior year-end archived top-20 rankings reused for the calendar year; not actual contemporaneous month-end market cap.

B · Top 3 momentum of Top 10

Universe and inputs

Start with top TEN by market capitalization; rank by adjusted closing-price return from 12 months ago through 1 month ago: P[t−1]/P[t−12] − 1.

Signals, holdings and refresh

Select the THREE highest momentum stocks and allocate one-third each. Monthly review and rebalancing.

Reproduce it and check limitations

12-minus-1 momentum deliberately excludes the most recent month.

C · Top 3 + individual stock 200-day trend

Universe and inputs

Start with top THREE size-ranked stocks; pass each stock through a 200-TRADING-DAY simple moving-average filter.

Signals, holdings and refresh

For each stock: invest one-third if closing price exceeds its own SMA200, otherwise retain that third as cash. Monthly review.

Reproduce it and check limitations

200-day SMA is arithmetic mean of 200 daily closing observations, not a 200-month average or an EMA. Saved methods label the indicator as adjusted-price SMA; exact price-series comparison deserves code review.

D · Momentum + individual stock 200-day trend

Universe and inputs

Take top THREE of the top-ten by 12-minus-1 momentum, then individually require close > 200-day simple moving average.

Signals, holdings and refresh

Passing stocks fill one-third slots; failing slots remain zero-yield cash. Monthly rebalance.

Reproduce it and check limitations

This is a per-stock filter, not a whole-index signal.

E · Top 3, annual reset

Universe and inputs

Same size-based top three as A.

Signals, holdings and refresh

Select and rebalance annually rather than monthly. No trend filter.

Reproduce it and check limitations

A lower scheduled rebalance frequency does not guarantee a lower tax bill.

F · Top 5 market cap

Universe and inputs

The five size leaders among eligible S&P 500 names.

Signals, holdings and refresh

Equal-weight 20% each; rebalance monthly.

Reproduce it and check limitations

No trend or momentum requirement.

G · Top 10 market cap

Universe and inputs

The ten size leaders among eligible S&P 500 names.

Signals, holdings and refresh

Equal-weight 10% each; rebalance monthly.

Reproduce it and check limitations

No trend or momentum requirement.

H · Top 20 market cap

Universe and inputs

The twenty size leaders among eligible S&P 500 names.

Signals, holdings and refresh

Equal-weight 5% each; rebalance monthly.

Reproduce it and check limitations

No trend or momentum requirement.

I · Top 3 + market-wide trend protection

Universe and inputs

The top three eligible S&P 500 companies by archived size rank. Market-wide filter: SPY adjusted close must exceed its own 200-trading-day simple moving average.

Signals, holdings and refresh

Review monthly. If SPY adjusted close exceeds its adjusted-close SMA200, allocate one third to each of the three size leaders. Otherwise hold 100% cash at assumed 0% cash yield. SPY is the signal, not necessarily a purchased holding.

Reproduce it and check limitations

Compute SPY adjusted-price SMA200 using 200 daily sessions; refresh rankings and signals on the last trading session of each month, and trade the next session. The legacy study instead applies the next month return at the signal month-end and approximates monthly market caps using archival annual rankings.

J · Top 3 + trend + 5pp buffer

Universe and inputs

The three largest eligible S&P 500 companies by archived size rank. Each selected stock must have adjusted close greater than its own 200-trading-day simple moving average. Each passing stock targets one-third of portfolio value; failed positions target zero and unused slots remain cash.

Exact verified rebalance trigger

At every monthly review, rebalance if the set of passing stock tickers changes OR if the absolute difference between any CURRENT portfolio weight and its corresponding TARGET weight exceeds 0.05 (five percentage points). The check includes cash as a portfolio weight. It uses strictly GREATER THAN 5pp, not greater-than-or-equal.

Numerical example

With a 33.33% target, current weight 37% is +3.67pp so no trade solely from drift; 40% is +6.67pp and triggers rebalancing to target weights. If a stock drops below its SMA200 and leaves the eligible set, the ticker change triggers a rebalance even if all weights are within 5pp.

Execution and research caveat

This matches src/compare_all.py. The saved results use synthetic annual historical market-cap rank surrogates, adjusted monthly returns, zero tax, zero cost and no execution slippage; live trades should be placed next session and measured separately.

SPY · S&P 500 (SPDR)

Universe and inputs

Buy and hold SPY ETF. The fund itself tracks its underlying index or sector holdings.

Signals, holdings and refresh

No strategy-level monthly switching or stock selection; compare ETF adjusted-price total returns.

Reproduce it and check limitations

Actual tracking, expenses, dividend schedules and holdings vary by fund. No pre-launch price history is fabricated.

VOO · S&P 500 (Vanguard)

Universe and inputs

Buy and hold VOO ETF. The fund itself tracks its underlying index or sector holdings.

Signals, holdings and refresh

No strategy-level monthly switching or stock selection; compare ETF adjusted-price total returns.

Reproduce it and check limitations

Actual tracking, expenses, dividend schedules and holdings vary by fund. No pre-launch price history is fabricated.

VTI · Total US stock market

Universe and inputs

Buy and hold VTI ETF. The fund itself tracks its underlying index or sector holdings.

Signals, holdings and refresh

No strategy-level monthly switching or stock selection; compare ETF adjusted-price total returns.

Reproduce it and check limitations

Actual tracking, expenses, dividend schedules and holdings vary by fund. No pre-launch price history is fabricated.

QQQ · Nasdaq-100

Universe and inputs

Buy and hold QQQ ETF. The fund itself tracks its underlying index or sector holdings.

Signals, holdings and refresh

No strategy-level monthly switching or stock selection; compare ETF adjusted-price total returns.

Reproduce it and check limitations

Actual tracking, expenses, dividend schedules and holdings vary by fund. No pre-launch price history is fabricated.

XLK · S&P 500 technology sector

Universe and inputs

Buy and hold XLK ETF. The fund itself tracks its underlying index or sector holdings.

Signals, holdings and refresh

No strategy-level monthly switching or stock selection; compare ETF adjusted-price total returns.

Reproduce it and check limitations

Actual tracking, expenses, dividend schedules and holdings vary by fund. No pre-launch price history is fabricated.

DIA · Dow Jones Industrial Average

Universe and inputs

Buy and hold DIA ETF. The fund itself tracks its underlying index or sector holdings.

Signals, holdings and refresh

No strategy-level monthly switching or stock selection; compare ETF adjusted-price total returns.

Reproduce it and check limitations

Actual tracking, expenses, dividend schedules and holdings vary by fund. No pre-launch price history is fabricated.

IWM · Russell 2000 small caps

Universe and inputs

Buy and hold IWM ETF. The fund itself tracks its underlying index or sector holdings.

Signals, holdings and refresh

No strategy-level monthly switching or stock selection; compare ETF adjusted-price total returns.

Reproduce it and check limitations

Actual tracking, expenses, dividend schedules and holdings vary by fund. No pre-launch price history is fabricated.

SOXX · Semiconductors

Universe and inputs

Buy and hold SOXX ETF. The fund itself tracks its underlying index or sector holdings.

Signals, holdings and refresh

No strategy-level monthly switching or stock selection; compare ETF adjusted-price total returns.

Reproduce it and check limitations

Actual tracking, expenses, dividend schedules and holdings vary by fund. No pre-launch price history is fabricated.

Research integrity and implementation notes

The 5pp buffer has not been code-verified. A numeric interpretation of a percentage-point tolerance is documented above; do not treat its illustration as a reverse-engineered statement of what Strategy J executed. To verify, retrieve the expanded backtest strategy module and inspect the J branch, especially its rebalance threshold, signal source, execution prices and cash rule.
Input / assumptionModel as currently backed by archive
Market cap rankingApproximate historical annual rankings reused within a year; not historically verified month-by-month
Trend average200 trading sessions, simple moving average (SMA); indicator based on adjusted-price series per saved methodology. Different from EMA.
Momentum12-minus-1 month: P(t−1) / P(t−12) − 1
RebalanceMonthly except annual E and buffered J; portfolios long-only
DividendsReturns from dividend/split-adjusted closes approximate dividend reinvestment, no separate dividend cash-flow ledger
ExecutionMonth-end return convention, not executable next-session fills. No slippage or trading costs
TaxesNot calculated. Selling in taxable accounts can create realized short- or long-term gains/losses; wash sales can defer losses.

Trading-platform display is not a live signal engine. Intraday candles, fill-by-fill profit factor, win rate, stop-loss/target statistics, tax-lot P&L and exact execution timestamps require additional source data and an event-driven backtester.

Strategy configuration lab

Customize rules and export an execution-engine configuration. Existing historical charts do not recalculate until a new research run is completed.

Execution status: This exports settings for the new daily engine, not a completed live backtest. The engine requires daily OHLC and historical ranks, uses next-session opening fills, and reports FIFO realized gains/losses. No tax bill or wash-sale computation is included. The saved monthly charts above are unchanged until new data is validated and a full run is produced.

Generated configuration