AI ETF Backtests: Check the Data Before You Trust the Chart
Ask AI to audit a backtest before asking it to improve one. Verify the data definition, cash flows, decision timing, trading costs, and comparison period. A reproducible calculation can expose a broken claim; it cannot prove that an ETF strategy will work in the future.
Research snapshot: November 14, 2026. Planned publication: November 23. The practice data are entirely invented. The arithmetic below was executed and checked with a local JavaScript calculation, not a live ETF backtest or a comparison of commercial AI models. The hero is an AI-generated editorial illustration.
An AI-generated chart can look persuasive before anyone has checked what it measures. A smooth line, a precise return, and a reassuring explanation can all come from a calculation that counted dividends twice or let a trading rule see the return it was supposed to predict.
The useful response is to make the analysis easier to challenge. Start with a small dataset whose arithmetic you can reproduce. Then carry the same questions into a larger investigation of real ETF data. This article provides copy-ready prompts, a deliberately simple practice file, and independently checked answers so you can recognize errors instead of merely requesting a better-looking chart.
The SEC’s investor education bulletin distinguishes hypothetical backtests from actual investment performance and warns about selective presentation of favorable periods. That distinction remains essential when AI creates the report. Source: SEC Office of Investor Education and Advocacy, “Performance Claims,” September 15, 2022.
1. Write the test’s contract before looking at the result
A backtest applies a rule to historical inputs. It answers a conditional question: what would this specified calculation have produced under these assumptions? It does not establish that an investor could have obtained every assumed price, maintained the rule, or known the relevant information at the time.
Write a short contract before comparing alternatives. Name the investment objective, eligible funds, observation dates, signal, execution timing, cash treatment, and benchmark. State what would count as a useful result. Otherwise the objective can quietly change from understanding a fund to finding whichever rule gives the largest number.
Accumulating capital
Track the growth of wealth with distributions treated consistently. Examine losses and concentration as well as the ending value. A growth objective does not require selecting only growth-style equities.
Spending the income
Track cash withdrawn, its variability, and the assets left behind. A reinvested total-return series describes a different experience from spending every distribution. Dividend growth, high yield, and option-based income are distinct strategies.
Keep personal constraints separate from optimization settings. Time until the money is needed, dependence on distributions, and capacity to withstand losses matter. Being patient does not make an ETF safe, and discomfort with volatility does not establish that the highest-payout fund is appropriate.
Act as an audit assistant, not an investment recommender. Before calculating, turn the following into a test specification: objective; eligible funds and their historical availability; dates; data fields and sources; distribution treatment; currency; signal observation time; first executable trade time; cash return; rebalancing; transaction costs; benchmark; and validation period. Mark missing items UNRESOLVED. Do not choose the best-looking settings. Separate a capital-accumulation test from a cash-withdrawal test. Do not use today's holdings or later information as historical inputs.
2. Give ChatGPT a small evidence packet, not a chart screenshot
For the guided exercise, use ChatGPT in a session that supports file analysis. Attach the CSV below, or paste its contents as text. Ask for the calculations and the code used, not just a narrative answer. If file analysis is unavailable, the pasted rows still allow you to inspect individual formulas; do not treat unexecuted code as a completed run.
OpenAI’s documentation describes CSV analysis and reviewing the code and assumptions behind an answer. Feature availability depends on the account and selected model. Record the model label displayed in your own session, the date, and whether execution actually occurred; this exercise does not require a named “latest” model or promise a particular subscription’s access. Source: OpenAI, “Data analysis with ChatGPT,” accessed November 14, 2026.
The sample represents one fictional fund over six equally spaced monthly intervals. P0 is the starting observation. The distribution in each subsequent row belongs to that completed interval and is assumed available for reinvestment at its ending raw price. These are teaching conventions, not a claim about actual ex-dividend or payment dates.
period,raw_close_usd,distribution_usd_per_share P0,100,0 P1,102,0.40 P2,98,0.40 P3,99,0.40 P4,104,0.40 P5,101,0.40 P6,103,0.40
Read the definition behind each series
For a real investigation, add a source note for each series. Identify the issuer or data provider, download date, frequency, raw or adjusted status, treatment of splits and distributions, and any missing observations. Preserve the original file. “Adjusted close” is a provider-defined field: confirm the methodology rather than assuming that the name proves every adjustment has been made correctly.
A useful provider example is Vanguard’s September 30, 2026 VOO investment profile. Its performance notes explicitly include reinvested dividends and capital-gain distributions and state that returns are net of expenses. That footnote tells you why adding a second dividend allowance or subtracting the fund expense ratio again can misstate an already-defined return. It is a reading example, not the dataset used here. Source: Vanguard VOO profile, second PDF page, “Total Returns” notes.
Fund-level expenses, investor trading costs, and taxes are separate questions. Before subtracting anything, determine which items the series already includes. Use public or fictional data for practice. Brokerage statements, account identifiers, API keys, and tax documents are unnecessary for this exercise.
3. Catch the dividend that appeared twice
The sample’s raw price changes from $100 to $102 in the first interval, and a $0.40 distribution is received per starting share. Because the price is unadjusted, the cash must be included once. The assumed reinvestment then changes the share count for subsequent intervals.
Price return = $102 ÷ $100 − 1 = 2.00%
Total return = ($102 + $0.40) ÷ $100 − 1 = 2.40%
Incorrect second addition:
2.40% + $0.40 ÷ $100 = 2.80%
The extra 0.40 percentage point has no second cash payment behind it.
Repeat the correct operation over the six intervals by multiplying their growth factors. Do not add monthly percentage returns. The starting investment can be expressed as an index of 100, with each cash distribution reinvested at that interval’s ending raw price. No new money enters or leaves the account.
Use only sample-prices.csv. All rows are fictional; P0 through P6 span six equal monthly intervals. USD, no contributions, withdrawals, taxes, splits, trading costs, or separate fund-fee deduction. The distribution on each row belongs to the preceding interval. Reinvest it at that row's raw close. For each t after P0 calculate: price_return[t] = raw_close[t] / raw_close[t-1] - 1 total_return[t] = (raw_close[t] + distribution[t]) / raw_close[t-1] - 1 wrong_return[t] = total_return[t] + distribution[t] / raw_close[t-1] Start each wealth index at 100 and compound its own returns. Show the row-by-row ledger, code, and final cumulative returns. Explain the error in wrong_return. Do not annualize six observations. If you cannot execute code, label the output UNEXECUTED.
Reconcile the reference answers
| Calculation | Ending index | Cumulative change |
|---|---|---|
| Raw price only | 103.0000 | +3.00% |
| Distribution reinvested once | 105.4689 | +5.47% |
| Distribution counted twice | 107.9868 | +7.99% · incorrect |
Rounded display values; calculations use full precision. Scroll inside the table on a narrow screen. These results are an executed arithmetic check of an invented dataset, not an actual ChatGPT product test or a fund recommendation.
If your AI answer differs, compare P1 first, then the next row. A confident explanation cannot reconcile an unexplained mismatch. Ask for the exact inputs and operations at the first divergence. Small reconciliations are more useful than requesting the entire analysis again with a stronger instruction to “be accurate.”
4. Put a clock beside every signal
Correct return arithmetic does not make a trading rule feasible. Imagine a rule that holds the fund only in intervals when its total return turns out positive. On this dataset, that hindsight rule gains 12.13%. It avoids losses by using information from the end of an interval to decide whether it was invested at the beginning.
A different, timing-consistent teaching rule starts in cash and holds the fund for the next interval only if the previous interval’s total return was positive. It loses approximately 0.81% over the same six intervals. Cash earns zero. Signals are assumed observable at the boundary and trades occur at that boundary price with no cost; real execution may require a later price and a more detailed model.
P1 completes
The P0–P1 total return becomes observable.
Choose P1–P2 exposure
Use the completed interval, not the still-unknown P2 result.
P2 completes
Only now can the next interval’s signal use that result.
The comparison demonstrates the effect of a timing mistake. It does not establish a useful momentum strategy, a fair opportunity to earn 12.13%, or a general rule that lagged signals lose money. Six manufactured observations have no power to settle those questions.
Using the same total_return series, audit these rules: A: weight[t] = 1 if total_return[t] > 0, otherwise 0. B: weight[P1] = 0; for subsequent intervals, weight[t] = 1 if total_return[t-1] > 0, otherwise 0. Strategy return is weight[t] * total_return[t]; cash earns zero. Compound each strategy from 100. No costs or taxes. Show, by row, when each input becomes known and the holding interval. Identify which rule uses future information. Report both results, but do not present rule A as attainable investment performance. For real data, list the observation and first executable trade timestamps.
Check what existed at the time
The same issue can enter a buy-and-hold comparison through fund selection. A portfolio selected from today’s surviving ETFs is not automatically the opportunity set an investor had years ago. Check launch dates, closures, mergers, and historical eligibility. Pre-launch index history is not a live ETF record. Current holdings should not silently stand in for historical holdings.
An AI model can also know later events from its training or retrieved documents. Telling it to imagine an earlier year does not demonstrate that such information was excluded. A historical narrative is not a verified historical signal. For a test that depends on text, preserve the original documents and their publication timestamps, and keep later material out of the decision inputs.
5. Add costs and an untouched test before trusting the comparison
Costs need a definition, not a token subtraction at the end. Ask whether the input is fund NAV performance, market-price performance, an index, or a raw share-price series. Then identify investor-level commissions, bid–ask spread, and slippage that remain outside it. Slippage is the difference between the assumed execution price and the price actually achievable in the modeled trade.
Starting wealth: $10,000
Gross investment gain: 1% = $100
Total absolute purchases plus sales: $20,000
Assumed one-way execution cost: 10 basis points = 0.10%
Cost = $20,000 × 0.001 = $20
Ending wealth = $10,000 + $100 − $20 = $10,080
Net return = 0.80%
This isolated example measures turnover as total absolute traded dollars divided by starting wealth: $20,000 ÷ $10,000 = 200%. It is not every provider’s turnover convention. The 10-basis-point assumption represents a one-way execution cost in this illustration, not a current broker quote. Taxes, fund expenses, financing, and intra-period compounding are excluded. Do not append this $20 to the six-interval example as if those trades had been modeled there.
Keep a test from becoming another tuning set
Write the rule using an earlier development period, then freeze it before evaluating a later period you have not used to choose settings. Record every variant tried. If you inspect that later result and change the rule, it has become part of development; calling it “out of sample” does not restore its independence.
A withheld period is a useful procedural check, not a certificate of statistical validity. Short samples, unusual market conditions, and repeated comparisons can still mislead. Novy-Marx’s research illustrates how combining and selecting signals can inflate apparent performance. Its abstract supports that warning; it does not validate this practice dataset or establish a universal minimum test length. Source: Robert Novy-Marx, “Backtesting Strategies Based on Multiple Signals,” NBER Working Paper 21329, 2015, abstract.
Inspect results across reasonable start dates, market regimes, and cost assumptions without concealing the unsuccessful variants. Compare with a benchmark that has a relevant risk exposure and the same dates, currency, cash-flow policy, and cost convention. A risk-reducing strategy should not be evaluated only by whether it beats an all-stock portfolio in a strong equity period.
Audit the test specification and result; do not optimize it. List missing evidence for costs, distributions, historical fund availability, signal timing, benchmark comparability, and the number of variants tried. Keep development and untouched validation periods separate. Report cumulative return, period-end drawdown, time in cash, turnover, and cash withdrawn where relevant. Explain each denominator and convention. Label metrics unavailable from the data; do not invent daily drawdowns from monthly observations. Show sensitivity cases without selecting a winner. Finish with: supported finding / unresolved question / next verification. Do not turn a hypothetical result into a buy, sell, or allocation instruction.
For the six invented intervals, the reinvested series has a maximum drawdown of approximately 3.53% between observed month-end points. This is the decline from the running observed peak to a later observed value. It says nothing about a larger loss inside a month. We deliberately do not report annualized return, a Sharpe ratio, or a claimed statistical edge from this tiny sample.
6. Turn the result into an evidence record, not a trade instruction
An AI audit is useful when another person can follow it. Save the source files, input definitions, test contract, prompts, executable calculation, outputs, and unresolved items together. A screenshot can illustrate the result, but it is not a substitute for the ledger.
Supported: With the stated reinvestment convention, the invented series gains 5.47%; adding its distribution twice produces the incorrect 7.99%. A same-interval selection rule uses future information.
Unresolved: No real ETF was tested. Actual execution, historical universe completeness, tax consequences, and predictive usefulness were not established.
Next verification: Obtain a documented real series, specify a feasible rule and benchmark in advance, and reconcile a small subset before expanding the test.
When revisiting a claim, retain the old passage and its status. Append the new evidence, what changed, and whether the conclusion changed. A new download date alone is not new support. This makes it harder for a later polished explanation to conceal what the original calculation could not establish.
Separate a finding from a portfolio change
The investment decision comes after that work. A historical ranking does not automatically justify adding a fund, replacing a holding, or changing an income plan. Ask whether the result addresses the actual purpose, whether the portfolio already carries the exposure, and whether the evidence is robust enough to change the original case. “Not enough evidence to act” is a useful output.
The next time AI offers an impressive ETF backtest, ask it to show one interval, one cash flow, and one decision timestamp. If those cannot be reconciled, improving the chart is premature.
Sources, reproducibility, and limits
Sources were reviewed November 14, 2026. The SEC bulletin is dated September 15, 2022; its general performance-presentation guidance is used here, not as a new legal rule. The Vanguard profile is dated September 30, 2026 and is cited only for its performance-methodology notes. OpenAI’s documentation describes current file-analysis capabilities, whose availability can differ by account. The NBER source is the 2015 working-paper abstract; full-paper access was not verified in this session. The independent practice calculation was run with JavaScript and archived with its inputs. No separate ChatGPT web-session experiment, live market test, commercial-model comparison, or investment transaction was performed.
Copy buttons use the browser clipboard when available. If blocked by your browser, select and copy the text manually. Optional plugins, skills, MCP servers, brokerage connections, and paid data feeds are not required for this exercise. They do not remove the need to verify definitions and permissions.
Continue reading: Build an ETF research workflow with copy-ready prompts, or separate more information from better investment judgment.
