TradeLabs AILearn

Portfolio and Multi-Asset Backtesting

Portfolio backtests simulate many positions with capital limits, sizing and rebalancing. Learn the key design choices, constraints, metrics and pitfalls.

Advanced3 min readUpdated 3 Oct 2026
Markdown
Lesson 19 of 38

Testing a rule on one asset is only the start. Real portfolios hold many positions, share limited capital, face constraints and rebalance over time. A portfolio backtest simulates all of this together: which assets to hold, how much of each, when to rebalance and what it all costs. Factor strategies, sector rotation, trend following across futures markets and multi strategy portfolios all require portfolio level testing to give realistic results.

Key design choices#

ChoiceOptionsLesson
UniverseWhich assets can be traded on each dateSurvivorship and Selection Bias
SignalRanking or scoring each assetCombining Signals
SelectionTop N, threshold, long short
WeightingEqual, market cap, volatility scaled, optimisedEqual, Value and Volatility Weighting
RebalancingMonthly, weekly, threshold basedRebalancing
ConstraintsPosition limits, sector limits, leverage, liquidityRisk, Position, Loss and Drawdown Limits
CostsCommissions, spreads, impact, borrowCosts and Slippage in Backtests

A simple example#

Universe management#

  • Use point in time constituents: index members on each historical date.
  • Handle delistings with final returns, including bankruptcies, often near minus 100%.
  • Apply liquidity filters using past volume, so the strategy does not hold untradable stocks.
  • Track corporate actions for splits, dividends, mergers and spin offs. See Corporate Actions, Delistings and Rolls in Backtests.

Constraints#

ConstraintWhy
Maximum position sizeLimit concentration. See Concentration Risk
Sector and country limitsAvoid unintended bets
Participation limitsTrade no more than a share of daily volume
Leverage and marginStay within account limits
Short availabilitySome stocks cannot be borrowed
Turnover limitsControl costs

Portfolio metrics#

Beyond returns and Sharpe ratio, portfolio backtests should report:

Common pitfalls#

PitfallEffect
Survivorship biasOverstated returns
Ignoring cash and margin limitsPositions that could not have been funded
Equal weighting illiquid stocksUnrealistic small cap exposure
Rebalancing at the same prices used for signalsLook ahead bias. See Look-Ahead Bias
Unmodelled costs of high turnoverFake profits

Long short portfolios#

Long short backtests add complications: short positions need borrow availability and fees, short sale proceeds may earn interest, and gross exposure (long plus short) drives costs and risk. A market neutral portfolio should be checked for remaining beta, sector and factor exposures, since a portfolio that looks neutral by dollar amount can still carry hidden market risk. See Short Selling and Alpha and Beta.

Benchmarks#

Compare portfolio results with a relevant benchmark, such as an equal weight version of the same universe, not just a broad index. A strategy that beats the S&P 500 but trails an equal weighted small cap index may simply be capturing a size tilt rather than skill. See Size Factor.

Frequently asked questions#

What is a portfolio backtest?#

A simulation of a strategy across many assets at once, including selection, sizing, rebalancing, constraints and costs.

Why are portfolio backtests harder than single asset backtests?#

Because they require point in time universes, corporate actions, capital and margin limits, rebalancing logic and portfolio level costs.

What metrics should a portfolio backtest report?#

Returns, risk, drawdowns, turnover, costs, exposures to markets and factors, concentration and capacity.

Next, learn to handle splits, dividends and mergers in Corporate Actions, Delistings and Rolls in Backtests.

Check your understanding

3 quick questions on this lesson. Get them all right to finish it.

Turn on JavaScript to take the quiz.

Finished this lesson?Sign in to save your progress across devices.
Next lessonCorporate Actions, Delistings and Rolls in BacktestsSplits, dividends, mergers, spin offs and delistings change prices and holdings. Learn how each affects backtests, how to adjust data and the errors to avoid.

Mentioned in