QUANTSTACKNINJATRADER 8 · METATRADER 5 · AUTOMATED TRADING
Model vs SPY total return, log scale
Stock investorSPY
Hover over the chart (or drag a finger across it) to read both lines on any week. Dashed line: out-of-sample (OOS) starts 1 Jan 2020; before it is in-sample (IS). Jan 2013 to Nov 2026, 13.8 years. Backtest with monthly rebalancing, trades at the next open, 0.25% cost on every dollar traded, dividends included. SPY is total return. Updated each trading day, through 30 Nov 2026. After 13 Nov 2026 the line follows the model portfolio itself, marked to market daily.

Statistics

MetricModelSPY
Compound annual return (CAGR)21.2%14.2%
Growth of $10,000$145,266$63,344
Sharpe ratio1.250.87
Sortino ratio1.200.82
Max drawdown−26.3%−33.7%
Calmar ratio (CAGR ÷ max DD)0.810.42
Annual volatility16.5%16.8%
Longest time below a high18 months23 months
Positive months64%69%
Best month+20.3%+12.7%
Worst month−10.9%−12.5%
0.79Beta to SPYMoves about 0.8× as much as the market on an average day.
0.80Correlation to SPYStill a stock portfolio: it rises and falls with the market, just not one for one.
108%Upside captureAverage return in months SPY was up, as a share of SPY’s gain.
69%Downside captureAverage return in months SPY was down, as a share of SPY’s loss.
61%Months beating SPYShare of all months where the model finished ahead of SPY.
11 of 14Years beating SPYCalendar years (2026 to date) where the model finished ahead.

Year by year

Ahead of SPY in 11 of 14 calendar years. It trailed in 2015, 2019 and 2024, years when a handful of mega-cap stocks did most of the index’s work.

Calendar-year return model vs SPY
’13
’14
’15
’16
’17
’18
’19
’20
’21
’22
’23
’24
’25
’26
Stock investorSPY
YearModelSPYDifference
2013+44.3%+29.0%+15.3%
2014+21.2%+13.5%+7.7%
2015−4.2%+1.2%−5.5%
2016+33.0%+12.0%+21.0%
2017+22.3%+21.7%+0.6%
2018+3.5%−4.6%+8.0%
2019+21.9%+31.2%−9.3%
2020+40.3%+18.3%+22.0%
2021+52.0%+28.7%+23.3%
2022−12.0%−18.2%+6.2%
2023+30.0%+26.2%+3.9%
2024+16.6%+24.9%−8.3%
2025+20.4%+17.7%+2.7%
2026 YTD+23.2%+8.3%+14.9%

When the market fell

Every SPY decline of 10% or more in the period, peak to bottom. The model lost less in 6 of 6. It still falls in a selloff: this is a stock portfolio, not a hedge.

SPY selloffSPYModel
Jul 2015 → Feb 2016−13.0%−12.3%
Jan 2018 → Feb 2018−10.1%−7.4%
Sep 2018 → Dec 2018−19.3%−11.4%
Feb 2020 → Mar 2020−33.7%−26.0%
Jan 2022 → Oct 2022−24.5%−17.0%
Feb 2025 → Apr 2025−18.8%−17.5%

In-sample vs out-of-sample

The backtest is split in two: 2013–2019 is in-sample, 2020–2026 is out-of-sample. The edge over SPY held up in the second period, through three major selloffs.

In-sample · 2013 – 2019The period the model was developed on
ModelSPY
CAGR19.3%14.2%
Sharpe1.411.10
Max drawdown−21.3%−19.3%
Out-of-sample · 2020 – 2026COVID crash, 2022 bear market, 2025 tariff selloff
ModelSPY
CAGR23.1%14.1%
Sharpe1.170.76
Max drawdown−26.3%−33.7%

Every month the model is scored using only data available at that date. The dashed line on the chart above marks where out-of-sample begins.

How it works

A fundamentals model, kept deliberately simple. Everything below runs automatically each month; you just place the trades.

  1. 01

    Start with the investable market

    Each month the model looks at the 2,000 most liquid US stocks that were actually trading at that date. ETFs, funds and very cheap stocks are left out.

  2. 02

    Read the financial statements

    For every company it pulls the latest quarterly filings straight from the SEC and turns them into a set of proprietary fundamental measures. Only data that was public on the day is used, so the model never sees the future.

  3. 03

    Rank every stock with one model

    A regularised linear model (ridge regression) turns those measures into one score per stock, trained on which profiles went on to beat the market over the following three months. Simple on purpose: neural networks, technical indicators and momentum factors were tested and did not improve it.

  4. 04

    Build a 30-stock portfolio

    The top 30 names are held. Higher-scoring and steadier stocks get more weight (capped at twice the average), and financials are capped at 9 names and 33% so one sector can’t take over. A holding stays until it drops out of the top 250, which keeps turnover down.

  5. 05

    Step back when the market breaks down

    If SPY closes the month below its 150-day average, the stock side is cut to half and the other half sits in gold (GLD) and 7–10 year Treasuries (IEF). It switches back once SPY recovers above the line.

  6. 06

    Rebalance once a month

    The signal runs after the close on the last trading day of the month. Trades happen at the next morning’s open. That’s it: about 12 decisions a year, no day trading, no leverage, no shorting.

Your portfolio, on your account page.

The live model portfolio appears in your QuantStack account as soon as you subscribe to Frontier. Each month it tells you exactly what to buy and sell, in dollars for your account size.

  • Current holdingsAll 30 positions with ticker, company, sector, weight and return since entry.
  • Rebalance countdownA live timer to the next month-end signal, plus the trend-rule status.
  • Your dollar amountsEnter your portfolio size and every buy, sell and position is shown in dollars and whole shares.
  • Monthly reportsWhat was bought, sold, added to and trimmed each month, kept as a running history.

Questions

Do I need NinjaTrader or a futures account?

No. This is a long-only stock portfolio. You place the trades yourself in any regular brokerage account that can buy US stocks, once a month. Nothing is automated in your account.

How much money do I need?

There is no minimum from us. With 30 positions, very small accounts end up with uneven weights unless the broker supports fractional shares. The account page shows dollar amounts and whole shares for whatever size you enter.

How much time does it take?

About 15 minutes a month. Check the rebalance tab after the month-end close, then place the listed buys and sells at or near the next open.

How do I get access?

The stock investor is included with the Frontier subscription, alongside the frontier model you choose, the 10 standard NinjaTrader algos and the QuantStack Dashboard. It appears on your account page once you are subscribed.

Why isn’t the portfolio shown here?

The current holdings and trades are for subscribers. This page shows how the model behaved historically and exactly how it works.

How reliable is this backtest?

It is honest about costs and timing (next-day open, 0.25% on every dollar traded) and the model is retrained only on data available at each date. The settings were chosen after seeing the full period, so expect live results to differ.

Hypothetical backtest, not live trading results. Dec 2012 to Nov 2026, updated each trading day (through 30 Nov 2026). After 13 Nov 2026 the line follows the model portfolio itself, marked to market daily. Monthly rebalance, trades at the next open, 0.25% cost on every dollar traded, dividends included, no taxes. Model settings were selected using the full period. The model portfolio has been tracked forward on the account page since the 2 Nov 2026 open. SPY figures are total return. This is model output for education, not personalised investment advice. Past performance is not indicative of future results. You can lose money.