At the end of a strong year, a portfolio reports a 12% gain while its actual investor cash flow suggests something closer to 10.8%. The discrepancy is often not an arithmetic error. It comes from a simple accounting choice: the backtest may include dividends in one part of the calculation but not another.

That inconsistency becomes more dangerous when the same strategy is evaluated across different periods. A high-dividend portfolio can appear to outperform simply because its price path excludes cash distributions, while a growth portfolio appears to lose because its valuation naturally declines after each distribution.

Polygon provides historical price data and dividend events, but it does not hand you a ready-made CRSP-style total-return series. The missing step is not difficult; the challenge is implementing it with the correct timing, split treatment, and reinvestment assumption.

This article builds a dividend-adjusted backtest from Polygon data, explains where the method differs from CRSP, and shows how dividend reinvestment changes a strategy's return, volatility, Sharpe ratio, and drawdown profile.

1. The Return That Investors Actually Experience

1.1 Price return and total return are different measures

A price return assumes that the investor owns the shares but receives no cash distributions:

[
R^{price}t = \frac{P_t}{P{t-1}} - 1
]

A total return adds the dividend received on the ex-dividend date:

[
R^{total}t = \frac{P_t + D_t}{P{t-1}} - 1
]

where:

  • (P_t) is the adjusted closing price on day (t)
  • (P_{t-1}) is the adjusted closing price on the previous trading day
  • (D_t) is the cash dividend with an ex-dividend date on day (t)

The difference matters because the portfolio value falls when a dividend is paid. For example, consider a stock that closes at $50.00 before a $1.00 dividend and closes at $49.00 on the ex-dividend date.

The price return is:

[
\frac{49.00 - 50.00}{50.00} = -2.00%
]

The total return is:

[
\frac{49.00 + 1.00 - 50.00}{50.00} = 0.00%
]

A price-only backtest records a loss even though the shareholder received the dividend and the economic value was unchanged before other market movements.

1.2 A small annual difference compounds

The following table illustrates how a 1.2% annual dividend yield changes a hypothetical multi-year result.

Metric Price-only portfolio Dividend-reinvested portfolio
Starting capital $100,000 $100,000
Price CAGR 8.0% 8.0%
Annual dividend yield 0.0% 1.2%
Approximate total CAGR 8.0% 9.2%
Ending value after 10 years $215,892 $243,987
Approximate excess value — $28,095

These figures are illustrative, not the result of a live backtest. They show the scale of the problem. A relatively small annual distribution becomes a material difference over a full testing cycle.

The impact is even larger when dividends are paid unevenly. A concentrated portfolio may receive 4%–6% of its value in a single calendar year while paying almost nothing in other periods. A strategy that uses monthly rebalancing will experience different capital and signal dynamics from one that rebalances quarterly.

1.3 The most common implementation mistakes

Backtests commonly contain one or more of the following errors:

  1. Using adjusted prices for signals but raw prices for returns. This creates an inconsistent price basis.
  2. Adding dividends to the portfolio value without specifying a reinvestment policy. The result is neither a conventional cash portfolio nor a standard total-return index.
  3. Applying the dividend on the payment date instead of the ex-dividend date. The market price normally adjusts on the ex-date.
  4. Ignoring stock splits. A dividend event combined with an unadjusted split can corrupt the entire factor series.
  5. Using a final total-return figure as if it were the result of a tradable strategy. The final value does not reveal turnover, taxes, transaction costs, or reinvestment friction.
  6. Comparing a price-return strategy against a total-return benchmark. The comparison is structurally biased.

The correct solution is to decide what the strategy owns, when it receives cash, and how that cash is invested. Those decisions should be explicit before the performance metrics are calculated.

2. Why Polygon Requires a Separate Adjustment Layer

Polygon provides the two ingredients required for a total-return construction:

  • Historical daily price data for calculating returns
  • Dividend events for identifying ex-dividend cash flows

The important distinction is between an event feed and an adjusted return series. Polygon supplies the dividend event. It does not automatically return a CRSP-compatible total-return index for the historical bars.

This distinction is useful. Event data allows a researcher to choose among several accounting policies rather than accepting one opaque adjustment factor.

2.1 Data model

A typical dividend record contains fields such as:

Field Meaning Backtest use
ticker Security identifier Security matching
ex_dividend_date Date on which ownership changes Dividend return inclusion
record_date Date on which the holder of record is determined Reference only
payment_date Date cash is paid Cash-account modeling
dividend Distribution amount per share Total-return calculation
frequency Payment frequency Validation and grouping
type Distribution classification Filtering special distributions

For a conventional total-return series, the ex_dividend_date is the primary event date. The payment_date matters when the backtest explicitly models cash accounts, taxes, or liquidity constraints.

The amount field should also be validated. Polygon may represent some dividend events with amount values that require careful interpretation. A production pipeline should not assume that every positive distribution is an ordinary recurring cash dividend without checking the event type and source documentation.

2.2 Data-source comparison

Capability Polygon daily bars Polygon dividends API CRSP total-return series Locally built total-return series
Raw or normalized price history Yes No Yes Yes
Dividend event details No Yes Yes Via Polygon
Ready-made total-return bars No No Yes Yes, with implementation
CRSP-compatible factors No No Yes Usually no
Researcher controls reinvestment timing No Yes, indirectly No Yes
Cash-account and tax modeling No Possible No Yes
Backtest auditability Good at source level Good Depends on licensed data High
Typical use Price signals and custom construction Corporate-action layer Benchmarking and institutional total return Research, simulation, factor analysis

CRSP is not merely another dividend table. It provides a carefully defined return methodology and licensed data products. If the objective is an exact CRSP benchmark, the most defensible approach is to use the official CRSP total-return series directly.

The self-built method is appropriate when:

  • The researcher needs to control reinvestment assumptions.
  • The strategy operates on multiple securities with custom cash handling.
  • The backtest models cash balances, taxes, or dividends received after payment.
  • The researcher needs a transparent, reproducible calculation that can be inspected line by line.

3. Adjustment Architecture: Event In, Total Return Out

A reliable pipeline should separate the dividend-event layer, the price-adjustment layer, and the strategy-account layer. This prevents a common failure mode: applying several adjustment factors to the same price and then adding dividends again.

3.1 Recommended architecture

+---------------------------+       +--------------------------+
| Polygon daily aggregates  |       | Polygon Dividends API   |
| - date                    |       | - ex_dividend_date       |
| - ticker                  |       | - payment_date           |
| - adjusted close          |       | - dividend amount        |
| - volume / turnover       |       | - frequency / type       |
+-------------+-------------+       +------------+-------------+
              |                                  |
              +----------------+-----------------+
                               |
                               v
                    +---------------------+
                    | Corporate-action     |
                    | validation layer    |
                    | - split handling     |
                    | - symbol mapping     |
                    | - duplicate checks   |
                    | - event-type filters |
                    +----------+----------+
                               |
                               v
                    +---------------------+
                    | Return builder      |
                    | - daily price return|
                    | - dividend return   |
                    | - reinvestment      |
                    | - total-return index|
                    +----------+----------+
                               |
                +--------------+--------------+
                |                             |
                v                             v
       +------------------+          +------------------+
       | Signal engine    |          | Portfolio engine |
       | - adjusted prices|          | - cash balance  |
       | - total returns  |          | - holdings      |
       +------------------+          | - taxes / costs |
                                     +------------------+

3.2 The three-layer rule

The calculation should follow three separate layers.

Layer 1: Normalized prices

The price series must be consistent before returns are computed. If the source provides split-adjusted prices, use them consistently. If it does not, apply a validated split factor from a corporate-actions source.

Do not apply a split adjustment twice. A common error is to adjust an already adjusted close by another factor obtained from a separate API.

Layer 2: Dividend events

The dividend layer determines which cash distribution belongs to each ex-date. The strategy should use the adjusted dividend amount per share. For example, if a stock splits 2-for-1 after a $1.00 dividend, the historical dividend expressed in post-split terms is $0.50.

Layer 3: Strategy accounting

The strategy layer decides whether the dividend:

  • Is reinvested immediately at the ex-date close
  • Is held as cash until the payment date
  • Is reinvested at the next rebalance
  • Is taxed according to an investor profile
  • Is subject to transaction costs

The total-return index is one possible portfolio accounting policy. It is not the only valid policy.

3.3 CRSP-style ex-date reinvestment

A common CRSP-style convention assumes that dividends are reinvested on the ex-dividend date, using the ex-date closing price. For a dividend of (D_t) and closing price (P_t), the number of additional shares purchased is:

[
N_t^{div} = \frac{D_t}{P_t}
]

The total-return wealth index can then be accumulated as:

[
I_t = I_{t-1} \times \frac{P_t + D_t}{P_{t-1}}
]

This convention makes the dividend economically visible at the point where the market price adjusts.

A CRSP benchmark may also use a dividend-reinvestment factor derived from the official series. Reproducing that exact result from Polygon alone is not guaranteed because the source data, security-master treatment, rounding rules, special distributions, and corporate-action methodology may differ.

The right operational rule is simple:

Use CRSP directly when the benchmark must match CRSP. Use a transparent Polygon-based reconstruction when the strategy needs custom cash-flow assumptions.

4. Production-Grade Polygon Dividend Retrieval

The following Python example retrieves dividend events with authentication, pagination, timeout handling, exponential backoff, jitter, and rate-limit handling.

It also uses the ex_dividend_date as the default accounting date. A separate payment-date workflow can be added for tax-aware or cash-account models.

import os
import random
import time
from datetime import date
from typing import Any

import requests

POLYGON_BASE_URL = "https://api.polygon.io"
API_KEY = os.environ.get("POLYGON_API_KEY")

if not API_KEY:
    raise RuntimeError(
        "POLYGON_API_KEY is not set. Export the key before running this script."
   )

SESSION = requests.Session()
SESSION.headers.update({"User-Agent": "dividend-adjusted-backtest/1.0"})


class PolygonAPIError(RuntimeError):
    """Raised when Polygon returns an unrecoverable response."""


def retry_delay(attempt: int, retry_after: str | None = None) -> float:
    """Return an exponential delay with jitter, honoring Retry-After."""
    if retry_after:
        try:
            return max(0.0, float(retry_after))
        except ValueError:
            pass

    base = min(2.0 * (2 ** attempt), 60.0)
    jitter = random.uniform(0.0, base * 0.1)
    return base + jitter


def fetch_dividends(
    ticker: str,
    start_date: date,
    end_date: date,
    limit: int = 1000,
    max_attempts: int = 6,
) -> list[dict[str, Any]]:
    """Fetch and paginate Polygon dividend records for one ticker."""
    records: list[dict[str, Any]] = []
    url = f"{POLYGON_BASE_URL}/v3/reference/dividends"
    params: dict[str, Any] = {
        "ticker": ticker,
        "ex_dividend_date.gte": start_date.isoformat(),
        "ex_dividend_date.lte": end_date.isoformat(),
        "limit": limit,
        "sort": "ex_dividend_date",
        "order": "asc",
        "apiKey": API_KEY,
    }

    for attempt in range(max_attempts):
        try:
            response = SESSION.get(
                url,
                params=params,
                timeout=(3.05, 30),
            )
        except requests.Timeout:
            if attempt == max_attempts - 1:
                raise
            time.sleep(retry_delay(attempt))
            continue
        except requests.RequestException:
            if attempt == max_attempts - 1:
                raise
            time.sleep(retry_delay(attempt))
            continue

        if response.status_code == 429:
            delay = retry_delay(
                attempt,
                retry_after=response.headers.get("Retry-After"),
            )
            time.sleep(delay)
            continue

        if response.status_code >= 500:
            if attempt == max_attempts - 1:
                response.raise_for_status()
            time.sleep(retry_delay(attempt))
            continue

        if response.status_code >= 400:
            raise PolygonAPIError(
                f"Polygon request failed: HTTP {response.status_code}; "
                f"body={response.text[:500]}"
            )

        payload = response.json()
        if payload.get("status") != "OK":
            raise PolygonAPIError(f"Unexpected Polygon response: {payload}")

        records.extend(payload.get("results", []))
        next_url = payload.get("next_url")

        if not next_url:
            break

        url = next_url
        params = {"apiKey": API_KEY}

    if not records:
        raise LookupError(
            f"No dividend records returned for {ticker} between "
            f"{start_date} and {end_date}"
        )

    return records

4.1 Production safeguards

The example intentionally does not include a WebSocket heartbeat because the Dividends API is a REST endpoint. REST does not have a persistent heartbeat protocol. For a continuously running backtest-data service, add a liveness check around the polling loop and record the timestamp of every successful refresh.

The code should be extended with the following controls before deployment:

  • Persistent state: Store the last successful ex-dividend date so a restart does not refetch the entire history.
  • Duplicate detection: Use a unique key such as (ticker, ex_dividend_date, dividend, type).
  • Symbol normalization: Map Polygon tickers to the identifiers used by the strategy and corporate-action source.
  • Raw-response archiving: Store unfiltered records so later methodology changes do not require a new vendor pull.
  • Data-quality checks: Flag negative amounts, implausible yields, multiple events on one date, and mismatches between ex_dividend_date and payment_date.
  • Clock handling: Use exchange-local dates for event matching, not the research machine's local timezone.
  • Secret management: Read POLYGON_API_KEY from the environment or a secret manager. Never commit it to source control.

4.2 A polling loop with liveness monitoring

A simple production-style loop can poll new dividends periodically and fail visibly if the data feed becomes stale:

import logging
from datetime import timedelta

from polygon_dividends import fetch_dividends

logger = logging.getLogger(__name__)

POLL_SECONDS = 900
MAX_STALENESS_SECONDS = 3600


def run_dividend_poller(ticker: str) -> None:
    """Poll for recent dividends and retain only newly observed records."""
    seen: set[tuple[str, str, float, str]] = set()

    while True:
        today = date.today()
        records = fetch_dividends(
            ticker=ticker,
            start_date=today - timedelta(days=120),
            end_date=today,
        )

        for record in records:
            key = (
                record.get("ticker", ticker),
                str(record.get("ex_dividend_date")),
                float(record.get("dividend", 0.0)),
                str(record.get("type", "")),
            )
            if key in seen:
                continue

            seen.add(key)
            logger.info("New dividend event: %s", key)

        # A successful poll acts as the liveness signal for this REST workflow.
        time.sleep(POLL_SECONDS)

For a multi-user system, replace the local seen set with a database table containing a unique constraint on the event key. That design prevents duplicate processing when multiple workers poll simultaneously.

5. Building a Total-Return Series from Prices and Dividends

The following function constructs a total-return wealth index from a split-consistent close series and dividend events.

The function assumes that the price series is already adjusted consistently for splits. If the source returns unadjusted prices, apply a split factor before calling it.

from collections import defaultdict
from datetime import date
from typing import Iterable

import pandas as pd


def build_total_return_index(
    prices: pd.DataFrame,
    dividends: Iterable[dict],
    start_value: float = 1.0,
) -> pd.DataFrame:
    """
    Construct an ex-date dividend-reinvested total-return index.

    Parameters
    ----------
    prices:
        DataFrame with columns:
        - date: datetime64 or date-like values
        - close: split-consistent closing prices
    dividends:
        Polygon dividend dictionaries containing at least:
        - ex_dividend_date
        - dividend
    start_value:
        Initial wealth index value.

    Returns
    -------
    DataFrame indexed by date with price_return, dividend_return,
    total_return, and total_return_index.
    """
    if prices.empty:
        raise ValueError("prices cannot be empty")
    if start_value <= 0:
        raise ValueError("start_value must be positive")

    frame = prices.copy()
    frame["date"] = pd.to_datetime(frame["date"])
    frame = frame.sort_values("date").drop_duplicates("date")
    frame = frame.set_index("date")

    dividend_by_date: dict[pd.Timestamp, float] = defaultdict(float)

    for event in dividends:
        ex_date = pd.Timestamp(event["ex_dividend_date"]).normalize()
        amount = float(event.get("dividend", 0.0))

        if amount < 0:
            raise ValueError(f"Negative dividend amount on {ex_date.date()}")

        dividend_by_date[ex_date] += amount

    previous_close = frame["close"].shift(1)
    dividend = pd.Series(
        [dividend_by_date.get(ts, 0.0) for ts in frame.index],
        index=frame.index,
        dtype="float64",
    )

    price_return = frame["close"].div(previous_close).sub(1.0)
    dividend_return = dividend.div(previous_close).fillna(0.0)
    total_return = price_return.add(dividend_return)

    result = pd.DataFrame(
        {
            "close": frame["close"],
            "dividend": dividend,
            "price_return": price_return,
            "dividend_return": dividend_return,
            "total_return": total_return,
        },
        index=frame.index,
    )

    result["total_return_index"] = (
        (1.0 + result["total_return"].fillna(0.0)).cumprod() * start_value
    )

    return result

5.1 Event-date matching

The event-date join deserves particular attention. A robust implementation should:

  1. Normalize every price timestamp to the exchange date.
  2. Normalize every dividend ex-date to the same calendar representation.
  3. Reject events outside the price range.
  4. Decide explicitly whether a dividend on a non-trading date rolls forward to the next session.
  5. Match the chosen policy against the benchmark methodology.

The most common non-trading-date case is a weekend or exchange holiday. If a security does not trade on the ex-date, the dividend should generally be associated with the next valid trading session according to the chosen convention. Rolling events forward is preferable to silently dropping them, but it must be documented.

5.2 Rounding and numerical precision

Floating-point arithmetic is adequate for research prototypes, but financial accounting should use decimal arithmetic or a carefully tested integer representation for cash and share quantities.

At minimum, test:

  • A $0.01 dividend on a $3.00 security
  • A $1,000 dividend on a $10,000 security
  • A dividend on the first day of the sample
  • A dividend on the final day of the sample
  • A stock split between two dividend events
  • Multiple dividends on the same date

For production portfolio accounting, calculate share quantities using the same rounding rule as the broker or accounting system being modeled.

6. How Dividend Reinvestment Changes Sharpe Ratio

The Sharpe ratio is:

[
Sharpe = \frac{R_p - R_f}{\sigma_p}
]

where (R_p) is the portfolio return, (R_f) is the risk-free rate, and (\sigma_p) is portfolio volatility.

Dividends affect both the numerator and denominator. They do not mechanically improve risk-adjusted performance.

6.1 Why Sharpe can increase

A dividend may improve Sharpe when the cash distribution is less volatile than the underlying price path or when reinvestment occurs before subsequent price appreciation.

Consider a stock with the following daily returns:

Scenario Price return Dividend return Total return
Day A -2.0% +2.0% 0.0%
Day B +1.0% 0.0% +1.0%

The price-only series has a negative event-day return and higher realized volatility around the ex-date. The total-return series replaces that mechanical price adjustment with the cash distribution, producing a smoother economic return path.

Dividend reinvestment can also increase the capital base before later gains. Over a long sample, this compounding effect can increase both expected return and volatility. Sharpe improves only if the return increase is proportionally larger than the volatility increase.

6.2 Why Sharpe can decrease

Dividend reinvestment can reduce Sharpe in several situations:

  • The underlying stock has negative expected excess return.
  • The dividend creates a larger position in a volatile security.
  • The strategy concentrates capital into high-yield securities.
  • Dividend events cluster around periods of market stress.
  • Reinvestment assumes a frictionless price that was not actually available.
  • The benchmark includes dividends but the strategy does not, or vice versa.

The key relationship is the covariance between dividends and price returns:

[
Cov(R_p, R_f)
]

A total-return portfolio can have a higher mean return but also a higher covariance with the risk-free asset or a more volatile underlying allocation. It is incorrect to assume that dividends automatically create alpha.

6.3 Illustrative metric decomposition

The table below shows the type of result that should be reported when comparing price-only and total-return implementations.

Metric Price-only series Total-return series Interpretation
Observation period 3 years 3 years Same sample
Daily observations Approximately 756 Approximately 756 Same trading calendar
Annualized return 8.0% 9.2% Dividends contribute 1.2 percentage points
Annualized volatility 12.9% 13.2% Reinvestment slightly increases volatility
Sharpe ratio 0.62 0.70 Return improvement exceeds volatility increase
Maximum drawdown -18.4% -16.9% Cash distributions soften some price drawdowns
Profit factor 1.34 1.41 Positive gross outcomes become more frequent
Benchmark Price index Total-return index Compare like with like
Cost assumption 5 bps per side 5 bps per side Same execution assumptions
Sample size 756 daily observations 756 daily observations Not equivalent to independent event samples

These values are illustrative rather than empirical performance claims. A valid published backtest should disclose the exact period, number of securities, number of dividend events, gross and net win rates, profit factor, Sharpe, Sortino, maximum drawdown, drawdown duration, benchmark, turnover, slippage, commissions, and dividend-reinvestment policy.

6.4 The right comparison set

A rigorous analysis should report at least four variants:

  1. Price-only strategy versus price-only benchmark
  2. Total-return strategy versus total-return benchmark
  3. Price-only strategy versus total-return benchmark
  4. Total-return strategy versus price-only benchmark

The fourth comparison is useful as a diagnostic because it reveals the impact of the benchmark mismatch, but it is not an economically fair primary evaluation.

For an event-driven strategy, also separate:

  • Dividend contribution to unrealized gains
  • Dividend contribution to realized cash
  • Reinvestment returns
  • Dividends paid
  • Taxes and withholding
  • Transaction costs

Without this decomposition, a strategy can appear profitable because it has accumulated cash distributions rather than because its entry and exit logic generated returns.

7. Comparing a Polygon Reconstruction with CRSP

A Polygon-based reconstruction can be highly accurate, but it is not automatically identical to CRSP. The comparison should use a formal reconciliation process.

7.1 Reconciliation procedure

For each security and date:

  1. Retrieve Polygon adjusted closes.
  2. Retrieve Polygon dividend events.
  3. Build the local total-return series.
  4. Retrieve the official CRSP total-return series for the same security and interval.
  5. Align dates using the CRSP trading calendar.
  6. Normalize both series to 100 at the beginning of the sample.
  7. Compare daily returns and cumulative wealth.
  8. Attribute differences to specific events.

7.2 Common sources of divergence

Source of divergence Likely explanation Resolution
Different starting normalization Each series begins at a different base Normalize both to 100
Missing dividend event Corporate-action coverage differs Check event type and source date
Different ex-date treatment Non-trading date or time-zone mismatch Use a documented event-date policy
Different split adjustment Price factors use different conventions Reconcile against a corporate-action source
Special dividend treatment Distribution may not be recurring Apply the benchmark's classification rules
Different security identifiers Symbol mapping changed Maintain a historical identifier map
Rounding differences Index divisor or share quantity rounding Quantify tolerance before declaring an error
Currency conversion Dividends and prices use different FX dates Align currency conversion to the benchmark method

7.3 A practical acceptance test

A local reconstruction should pass a defined acceptance test before it is used as a benchmark substitute.

For example:

  • At least 99.9% of daily returns match within 1 basis point.
  • The cumulative return difference remains below 10 basis points over the full sample.
  • Every material difference maps to an identified corporate action.
  • The final wealth difference is smaller than the declared tolerance.
  • The result remains stable after rerunning with the raw and adjusted price series.

The appropriate tolerance depends on the research objective. A high-frequency signal study may require much tighter agreement than a long-horizon portfolio simulation.

7.4 When CRSP should remain the source of truth

CRSP should remain the benchmark when:

  • The research claim depends on official institutional methodology.
  • The portfolio is benchmarked against a published CRSP index.
  • Regulatory or client reporting requires a recognized return standard.
  • The strategy includes securities with complex corporate actions.
  • The researcher cannot reproduce the relevant security-master treatment.

A custom Polygon reconstruction is most valuable when it provides flexibility, not when it is presented as an exact substitute for a licensed benchmark without reconciliation.

8. Deployment Guide for Research Teams

8.1 Recommended configurations

User segment Price source Dividend source Reinvestment policy Primary use
Individual researcher Polygon daily bars Polygon Dividends API Ex-date close Custom signals and portfolio tests
Strategy developer Polygon adjusted bars Polygon Dividends API Ex-date close plus costs Factor and execution research
Institutional research team Polygon or internal feed Polygon plus validated corporate actions Official benchmark policy Reproducible multi-asset backtests
Benchmarking team Polygon reconstruction Polygon Dividends API CRSP reconciliation Validation against official CRSP
Production allocator Approved market-data feed Approved corporate-action feed Cash-account and execution policy Live or paper trading

8.2 Minimum acceptance criteria

Before production use, a pipeline should require:

  • Dividend events are complete for every security in the universe.
  • Ex-dividend dates align with the exchange calendar.
  • Splits are applied once and only once.
  • Special dividends have an explicit classification.
  • Return calculations pass unit tests across known edge cases.
  • The reconstruction is reconciled against CRSP where relevant.
  • Results record the data version and adjustment methodology.
  • Every backtest output identifies whether returns are price-only or total return.

8.3 Operational monitoring

Monitor at least four pipeline metrics:

Metric Why it matters
Event arrival lag Detects missing or delayed dividend records
Price/dividend mismatch rate Identifies corporate-action inconsistencies
Reconstruction-vs-CRSP drift Detects methodology or data changes
Unclassified distribution count Prevents silent treatment of special dividends

A pipeline should also preserve raw responses. Polygon may amend historical corporate-action records, and a reproducible research system must be able to reconstruct the exact data version used by a published result.

8.4 A practical research checklist

Before reporting a backtest, answer the following questions:

  1. Are the price series used for signals and returns based on the same adjustment convention?
  2. Are dividends included on the ex-date?
  3. Are special dividends included or excluded?
  4. Are dividends reinvested at the ex-date close, the payment date, or the next rebalance?
  5. Is the benchmark also total return?
  6. Are transaction costs applied to reinvestment trades?
  7. Are taxes and withholding modeled separately?
  8. Is the result sensitive to the event-date policy?
  9. Has the reconstruction been reconciled against CRSP?
  10. Can another researcher reproduce the result from the recorded data version and code?

9. The Correct Reporting Language

A technically credible backtest should state the return methodology in the result label, not hide it in a footnote.

Prefer:

The strategy is evaluated on a dividend-reinvested total-return basis. Dividends are reinvested at the ex-dividend closing price. The benchmark is the corresponding CRSP total-return series. Transaction costs include 5 bps per side and a $0.01 per-share commission.

Avoid:

The strategy achieved a 12% annual return using market data.

The first statement tells the reader exactly what was measured. The second leaves too many important variables undefined.

For reproducibility, include a compact methodology block:

Price basis: Split-consistent daily closing prices
Dividend source: Polygon Dividends API
Dividend date: Ex-dividend date
Reinvestment: Ex-date close
Benchmark: CRSP total-return series
Commission: $0.01 per share
Slippage: 5 bps per side
Cash treatment: Dividends reinvested on ex-date
Reporting basis: Gross and net of estimated transaction costs

10. Closing: Measure the Return You Can Actually Receive

A backtest that ignores dividends may look simpler, but it often measures an economic return the investor cannot collect.

Dividend adjustment is not a cosmetic adjustment added at the end of an equity backtest. It is a defined cash-flow policy that must be integrated into prices, signals, portfolio accounting, costs, benchmarks, and reporting.

The correct workflow is straightforward:

  1. Use a split-consistent price series.
  2. Retrieve dividend events from the Polygon Dividends API.
  3. Align ex-dividend dates to the exchange calendar.
  4. Reinvest dividends at the ex-date close for a CRSP-style total-return construction.
  5. Reconcile the result against official CRSP data when benchmark fidelity matters.
  6. Report price-only and total-return results separately.
  7. Evaluate Sharpe using the same return definition for both the strategy and its benchmark.

The goal is not to make a backtest look better. It is to make the result economically interpretable. Once dividends, cash flows, and benchmark conventions are aligned, performance statistics become a more credible description of the strategy rather than an artifact of inconsistent accounting.

Next Steps

If you are an individual quantitative developer, use the Polygon-based construction to test whether your strategy's signals remain stable after dividend reinvestment and realistic execution costs.

If you are comparing strategies or research reports, verify that the strategy, benchmark, and reported Sharpe ratio all use the same price-only or total-return convention.

If you are building an institutional backtest, reconcile the custom reconstruction against official CRSP total-return series and archive the exact data version and corporate-action policy used for every result.

If you use AI coding assistants, search for and install the tickdb-market-data SKILL in your AI tool's marketplace for additional market-data workflow support.

This article does not constitute investment advice. Markets involve risk; past performance does not guarantee future results.