# 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.

Source: https://learn.tradelabsai.com/research/portfolio-backtesting/  
Track: Research and Backtesting · Level: Advanced · Updated: 2026-10-03  
Publisher: TradeLabs AI (https://tradelabsai.com). Education, not financial advice.  
Cite as: TradeLabs Learn, "Portfolio and Multi-Asset Backtesting", https://learn.tradelabsai.com/research/portfolio-backtesting/

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

| Choice | Options | Lesson |
|---|---|---|
| Universe | Which assets can be traded on each date | [Survivorship and Selection Bias](https://learn.tradelabsai.com/research/survivorship-and-selection-bias/) |
| Signal | Ranking or scoring each asset | [Combining Signals](https://learn.tradelabsai.com/research/combining-signals/) |
| Selection | Top N, threshold, long short | |
| Weighting | Equal, market cap, volatility scaled, optimised | [Equal, Value and Volatility Weighting](https://learn.tradelabsai.com/portfolio/portfolio-weighting/) |
| Rebalancing | Monthly, weekly, threshold based | [Rebalancing](https://learn.tradelabsai.com/portfolio/rebalancing/) |
| Constraints | Position limits, sector limits, leverage, liquidity | [Risk, Position, Loss and Drawdown Limits](https://learn.tradelabsai.com/portfolio/risk-limits/) |
| Costs | Commissions, spreads, impact, borrow | [Costs and Slippage in Backtests](https://learn.tradelabsai.com/research/costs-and-slippage-in-backtests/) |

## A simple example

**Example: A monthly momentum portfolio**
Universe: the 500 largest US stocks as of each month end, including stocks later delisted. Signal: 12 month return excluding the latest month. Selection: top 50 stocks. Weighting: equal weight, rebalanced monthly. Costs: 10 basis points per side.

Each month the backtest ranks stocks, buys new entrants, sells exits and rebalances weights. About 35% of the portfolio turns over each month, costing roughly 0.07% a month (35% × 2 sides × 0.10%), close to 0.8% a year. The backtest records holdings, turnover, sector exposures and returns, not just final performance. See [Momentum Factor](https://learn.tradelabsai.com/research/momentum-factor/) and [Signal Turnover, Breadth and Neutralization](https://learn.tradelabsai.com/research/signal-turnover/).

## 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](https://learn.tradelabsai.com/research/corporate-actions-in-backtests/).

## Constraints

| Constraint | Why |
|---|---|
| Maximum position size | Limit concentration. See [Concentration Risk](https://learn.tradelabsai.com/risk/concentration-risk/) |
| Sector and country limits | Avoid unintended bets |
| Participation limits | Trade no more than a share of daily volume |
| Leverage and margin | Stay within account limits |
| Short availability | Some stocks cannot be borrowed |
| Turnover limits | Control costs |

## Portfolio metrics

Beyond returns and Sharpe ratio, portfolio backtests should report:

- **Turnover and total costs.**
- **Exposures:** market beta, sectors, factors. See [Factor Models](https://learn.tradelabsai.com/portfolio/factor-models/).
- **Concentration:** largest positions and effective number of holdings.
- **Drawdowns and recovery times.** See [Maximum Drawdown](https://learn.tradelabsai.com/portfolio/maximum-drawdown/).
- **Capacity:** how returns change with assets under management. See [Alpha Capacity and Crowding](https://learn.tradelabsai.com/research/alpha-capacity-and-crowding/).
- **Attribution:** what drove returns. See [P&L and Performance Attribution](https://learn.tradelabsai.com/industry/performance-attribution/).

## Common pitfalls

| Pitfall | Effect |
|---|---|
| Survivorship bias | Overstated returns |
| Ignoring cash and margin limits | Positions that could not have been funded |
| Equal weighting illiquid stocks | Unrealistic small cap exposure |
| Rebalancing at the same prices used for signals | Look ahead bias. See [Look-Ahead Bias](https://learn.tradelabsai.com/research/look-ahead-bias/) |
| Unmodelled costs of high turnover | Fake 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](https://learn.tradelabsai.com/markets/short-selling/) and [Alpha and Beta](https://learn.tradelabsai.com/portfolio/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](https://learn.tradelabsai.com/research/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](https://learn.tradelabsai.com/research/corporate-actions-in-backtests/).

## Continue learning

- Next lesson: [Corporate Actions, Delistings and Rolls in Backtests](https://learn.tradelabsai.com/research/corporate-actions-in-backtests/)
- Previous lesson: [Fill Models, Partial Fills and Order Queues](https://learn.tradelabsai.com/research/fill-models/)
- Related: [Fill Models, Partial Fills and Order Queues](https://learn.tradelabsai.com/research/fill-models/): A fill model decides when and at what price backtest orders execute. Learn market, limit and stop fill assumptions, queue position and adverse selection.
- Related: [Portfolio Construction](https://learn.tradelabsai.com/portfolio/portfolio-construction/): Portfolio construction turns investment ideas or trading strategies into a set of positions with sensible sizes. Learn the steps, common methods and constraints.
- Related: [Rebalancing](https://learn.tradelabsai.com/portfolio/rebalancing/): Rebalancing brings a portfolio back to its target weights after markets move. Learn calendar and threshold rebalancing, costs, taxes and the rebalancing premium.
- Related: [Survivorship and Selection Bias](https://learn.tradelabsai.com/research/survivorship-and-selection-bias/): Survivorship bias ignores failures; selection bias picks unrepresentative samples. Learn how both inflate backtests, fund returns and advice, and how to fix them.
- Related: [Corporate Actions, Delistings and Rolls in Backtests](https://learn.tradelabsai.com/research/corporate-actions-in-backtests/): Splits, dividends, mergers, spin offs and delistings change prices and holdings. Learn how each affects backtests, how to adjust data and the errors to avoid.
- Related: [Factor Investing Explained](https://learn.tradelabsai.com/research/factor-investing-explained/): Factor investing targets traits linked to long run returns, such as value, momentum and quality. Learn the main factors, the evidence and how they are traded.
