Backtesting guide

Backtest the portfolio as one combined account

Portfolio backtesting places every holding on one timeline with shared cash, allocation, rebalancing, income, and transaction costs. Averaging separate summary metrics does not reconstruct that combined account.

Read the practical guide

Key Takeaways

  • Portfolio cash, overlapping positions, allocation limits, and rebalancing must be modeled together.
  • Dividend portfolio backtests need an explicit income and reinvestment policy rather than an unexplained adjusted-price series.
  • Judge the combined equity curve, drawdown, turnover, concentration, and benchmark difference.
  • Pineify Finance Agent supports portfolio research, not portfolio backtest execution.

Define the portfolio accounting model first

Fix the starting value, eligible assets, target weights, cash treatment, the cap on concurrent positions, the rebalance schedule, and the fee model. Spell out what happens when several signals compete for the same cash. Standalone reports cannot show those constraints or losses that hit at the same time.

  • Use one calendar and one cash ledger for every holding.
  • Specify allocation, concentration, and rebalance rules.
  • Track combined turnover, fees, drawdown, and recovery.
  • For a hypothetical cost-free period with half the capital in each of two assets, returns of +2% and -1% combine to +0.5%. Weights can drift afterward; maintaining half in each requires a rebalance whose costs must be included.

Handle dividends and corporate actions explicitly

A dividend portfolio backtest must state whether it uses price return or total return, how cash distributions enter the account, and when reinvestment occurs. Splits, mergers, delistings, and membership changes also affect historical results. The goal is not to pick one universally correct dataset, but to make the dataset and accounting treatment visible and consistent with the strategy claim.

Compare the portfolio with a relevant benchmark

Review the portfolio-level equity curve, maximum drawdown, volatility, turnover, concentration, and time under water. Compare the same period and cash-flow assumptions with a benchmark that reflects the investable opportunity. Diversification can reduce some concentration risk, but Investor.gov notes that it cannot guarantee protection during a market decline.

Related Pineify workflow

Research the holdings after defining the portfolio test

AI Finance Agent can help investigate the companies, ETFs, financials, and investment questions behind a proposed portfolio. Use a dedicated portfolio backtesting engine for the historical simulation.

AI Finance Agent

Research holdings and portfolio questions without presenting the research as a completed backtest.

Research portfolio holdings

Boundary: AI Finance Agent does not maintain a portfolio cash ledger, model rebalancing, or calculate a historical portfolio equity curve.

This page is educational and does not provide investment advice. Backtests are hypothetical, depend on their data and assumptions, and do not guarantee future results. Trading can result in substantial loss.

Frequently Asked Questions