Portfolio optimiser

Approach 3 · Optimiser

Portfolio optimiser

Read the theory behind this approach on the Concepts page.

01

Universe

Assets, window, forecast horizon and the starting allocation the optimiser trades away from. Shared with the other approaches.

AppleAAPLMicrosoftMSFTAlphabet (Google)GOOGLAmazonAMZNJPMorgan ChaseJPMExxonMobilXOM

Pick from the list or type any ticker and press Enter.

Up to 10 years of history.

Optional: shows dollar amounts. 0 = log-return view.

20
160

Trading days to forecast beyond the window.

Recommended setup

1 suggestion

  • WindowRecommended: ≥ 250 trading days

    About 392 trading days. Windows from 250 to 1000 days gave the same forecast accuracy and the best-calibrated bands on five years of data.

  • AssetsRecommended: 10 or more

    6 assets: expect roughly 5 to 10% lower realised volatility than equal weight. The benefit grows with breadth (about 20% at 15 assets, 26% at 40).

  • Forecast horizonRecommended: 5 to 60 days

    Bands were calibrated at 5, 20 and 60 days. The point forecast equals the historical mean at every horizon tested; read the band, not the line.

Based on rolling-origin tests over five years of real data (scripts/eval). Guidance only; nothing here changes what runs.

Starting allocation: held during burn-in, then traded toward the optimiser's weights.

Portfolio weights
AAPL
%
MSFT
%
GOOGL
%
AMZN
%
JPM
%
XOM
%
Total: 100.0% ✓
02

Risk model and optimiser

Pick a preset, then adjust risk aversion, rebalancing, costs and the per-asset cap.

Preset

No return signal. Weights come from the adaptive covariance forecast, a per-asset cap and cost-aware trading.

Common return drivers in the covariance model.

3
0.530

Higher = more weight on variance reduction. With the signal off, λ only matters against costs and the equal-weight anchor.

How often the optimiser may change weights.

0.001
00.02

Penalises turnover in the objective and is charged against realised returns.

63
5252

Expected holding period. The one-off cost is weighed against this many days of benefit.

0.2
0.051

Long-only cap. Relaxed automatically when n × cap ≤ 100%.

0
01

0% = pure risk model. Raising it feeds the Kalman prediction and trailing means into the objective; no out-of-sample skill has been found on daily data.

0
01

Optional prior pulling weights toward 1/n.

Recommended settings

All settings in the recommended range

  • Latent factorsRecommended: k = 1 to 3

    One to four latent factors gave the same forecast accuracy on five years of data; three matches the information-criterion choice on a broad panel.

  • Factor dynamicsRecommended: VAR(1) or VAR(2)

    Daily factor scores are close to white noise, so one or two lags is all the data supports.

  • Return signalRecommended: 0%

    Pure risk model: the only setting with a measured benefit versus equal weight.

  • Mean half-lifeRecommended: ≥ 126 days (252 default)

    Long centering mean, the setting that scored best on five years of data.

Based on rolling-origin tests over five years of real data (scripts/eval). Guidance only; nothing here changes what runs.

◈

Configure the universe and optimiser, then click Run backtest.