MyQuant S&P 500
Performance data and methodology
2018-04-25 – 2025-12-23 · 1,928 trading days
| Metric | SPY | Final backtest V5 | Paper simulation |
|---|---|---|---|
| Cumulative return | 194.50% | 240.57% | 302.77% |
| Annualized return | 15.16% | 17.37% | 19.97% |
| Sharpe ratio | 0.78 | 1.10 | 1.26 |
| Max drawdown | -33.72% | -24.29% | -24.70% |
| Daily win rate | 55.50% | 54.88% | 55.71% |
| Year | SPY | Final backtest V5 | Paper simulation |
|---|---|---|---|
| 2018 | -3.79% | 0.21% | 2.33% |
| 2019 | 31.22% | 29.67% | 38.11% |
| 2020 | 18.33% | 14.26% | 16.14% |
| 2021 | 28.73% | 30.24% | 32.39% |
| 2022 | -18.18% | -10.27% | -10.36% |
| 2023 | 26.18% | 31.24% | 37.65% |
| 2024 | 24.89% | 26.58% | 26.76% |
| 2025 | 18.76% | 18.15% | 18.51% |
The first and last years are partial. Returns compound daily. The project calculates Sharpe as CAGR divided by annualized daily volatility, using 252 trading days and a 0% risk-free rate. Drawdown uses daily closing values. Win rate counts days with a positive return across all trading days.
The final V5 backtest charges 0.10% per side. The historical paper simulation uses the earlier multi-strategy holdings and the $1,000 Alpaca Free scenario, including spread, slippage, and sell-side fees.
MyQuant S&P 500
Compare SPY, the final V5 backtest, and a paper simulation of the S&P 500 multifactor strategy. The simulation replays the earlier portfolio with $1,000 under the Alpaca commission-free cost model.
- Portfolio strategy
- V5 combines machine-learning multifactor stock selection with short-term reversal, momentum and low-volatility strategies. Portfolio weights are based on each strategy’s Sharpe ratio over the backtest.
- Market data
- The universe contains 100 S&P 500 stocks. Daily adjusted prices, trading volume and SPY benchmark prices for 2015–2025 come from Yahoo Finance via yfinance.
- Factors
- The 25 features include 17 stock factors such as momentum, volatility, price–volume correlation and RSI. Eight cross-asset features track the VIX, the 10-year US Treasury yield (TNX) and the US Dollar Index (DXY).
- Scoring model
- A LightGBM regression model ranks stocks by predicted excess return. It is trained on rolling two-year windows, with ridge regression as the baseline.
- Training target
- Each stock’s forward five-trading-day close-to-close return minus SPY’s return over the same dates. A positive value means the stock outperformed SPY.
