Research scope: Documentary analysis with a hypothetical worked example. Sources reviewed 5 December 2026; this is a planning and interpretation guide, not a report of 2027 observations.
Keep the calendar before calculating the return
A backtest can become more impressive when its evidence becomes less complete. If a collector loses observations during difficult periods and the analysis deletes those rows, the surviving history may describe the easiest moments rather than the intended trading strategy.
The first control is a planned observation calendar that survives failed collection. Every scheduled interval needs a disposition. An observed zero return, a market closure, a failed request, an unlisted asset and an unknown price are different records. A clean table with fewer rows does not establish a cleaner economic history.
This article adds a missing-window sensitivity test to DN's existing value-state framework. Its return path is invented. It does not estimate the quality of any provider or claim that real outages systematically occur on losing days.
Twelve periods become seven winners
Consider a hypothetical continuously invested strategy with twelve consecutive period returns. Seven periods gain 2% each. Five lose 4% each. If all twelve returns are included, the compound result is 1.02 to the seventh power multiplied by 0.96 to the fifth power, minus one: −6.3393%.
Suppose the five negative periods are absent from a saved dataset. Multiplying only the seven available gains produces +14.8686%. Both calculations follow from their inputs, but the second is not the twelve-period investment return. It is the compound result of a selected seven-period sequence.
The example deliberately makes the selection severe so the mechanism is visible. It does not imply that all missing periods are losses. In a real incomplete dataset, their outcomes are unknown. The correct response is to preserve that unknown state and investigate the missingness, rather than use the invented losses as imputed observations.
| Synthetic view | Included periods | Compound result | Honest interpretation |
|---|---|---|---|
| Complete invented path | 12 of 12 | −6.3393% | Full result for this fictional strategy |
| Surviving positive rows | 7 of 12 | +14.8686% | Selected-period result |
| Real dataset with five unresolved returns | 7 of 12 | Full-period return unknown | More evidence or explicit sensitivity assumptions required |
The sign changes without changing any of the seven surviving observations. The missing denominator carries the risk.
A missing candle has more than one explanation
Coinbase's candle documentation warns that historical rate data may be incomplete and that it publishes no candle for an interval with no ticks. The same page defines the available time buckets and request limits. An absent bucket therefore cannot be interpreted without understanding the endpoint and the requested window. [1]
Coinbase separately documents sequence gaps and out-of-order messages in its Exchange WebSocket feed. A connection can remain technologically plausible while the consumer needs to repair its market state. The correct handling depends on the channel and provider contract. [2]
These documents establish interface considerations, not an outage rate. They do not establish that a no-tick interval had a zero economic return, that an order could have filled at the previous price, or that a dropped message caused a loss. Those are separate claims.
How data cleaning can change the investment question
Pandas documents that dropna removes missing values according to the selected axis and conditions. That is a useful software operation. Its economic appropriateness depends on what the removed rows mean. A library cannot decide whether an absent return represents an excluded instrument, unavailable observation or an unresolved position. [3]
Dropping a price row before calculating returns can join two distant observations into one longer holding interval. Dropping an already calculated return can remove part of an investment path. Those operations are not equivalent. Forward filling a price introduces another assumption: the retained valuation is a usable mark. It does not establish executable liquidity.
A multi-asset strategy adds a further problem. Reweighting the surviving assets after one price disappears can quietly allocate its capital elsewhere. If the actual strategy remained exposed to the missing asset, the simulated portfolio has changed. Define holdings, valuation and trade eligibility separately.
Design the observation ledger first
| Record | Required distinction | Review question |
|---|---|---|
| Scheduled interval | Planned start and end | Was this period intended to be in scope? |
| Instrument state | Listed, closed, halted or unresolved | Was a market expected to exist? |
| Collection state | Success, failure, partial or not attempted | Did DN actually obtain the required data? |
| Value state | Observed, stale, missing or inapplicable | What does the source establish? |
| Position state | Holdings and obligations before the interval | What exposure persisted through the gap? |
| Repair state | Source, time and method of any reconstruction | Was the repair available at the decision time? |
A retry must retain the failed original attempt if the research question concerns operational reliability. A later historical repair may help reconstruct economic returns while remaining unavailable to a contemporaneous trading rule. Report both scopes rather than forcing one record to answer them.
Use bounds as assumptions, not discoveries
When five returns remain unresolved, an analyst can show what would happen under stated scenarios. If each missing period were flat, the selected gains would compound to +14.8686%. If each were −4%, the full path would be −6.3393%. If each were +4%, the result would be higher. These are conditional calculations, not confidence limits or estimated probabilities.
A useful next step is to calculate the break-even assumption: what combined return across the unresolved periods would exactly offset the known gain? In this fixture it is the reciprocal of 1.02 to the seventh power, minus one, approximately −12.9440%. That identifies how consequential the missing evidence is. It does not predict that missing result.
Bounds are only defensible if the assumptions are explicit. A daily loss floor based on an unrelated market cannot be inserted as though it were a contractual limit. Leveraged instruments, trading halts and missing terminal settlements can invalidate an apparently comfortable range.
What to demand before allocating capital
An institutional reviewer should ask for the planned universe and calendar, exclusion reasons, data-repair log and the positions that existed during gaps. Compare the full intended sample with the published sample. If the strategy cannot be valued over an unresolved interval, label the affected performance unavailable.
A smaller investor can ask three questions of a strategy advertisement: how many periods were intended, how many are missing, and what happened to open positions during those gaps? A confident return number without these answers is incomplete evidence. More decimal places do not fix the missing history.
The CSV contains all twelve fictional returns and a flag for the selectively missing rows. The table above explains the three interpretations, and the JSON source record retains the arithmetic. It is a worked record, not a historical market dataset. Its arithmetic can be reproduced with ordinary multiplication and no paid service.
The conclusion that survives the missing rows
Missing data do not automatically invalidate every study. A justified exclusion, a well-documented reconstruction or a carefully bounded decision can remain useful. What fails is silently changing the population while retaining the original claim.
A better performance report makes the absent periods visible before the reader sees the headline return. That is where a research platform can add value: preserving the evidence that an attractive chart would otherwise erase.
Use the worked example
Original DN synthetic worked record. Replace assumptions only after retaining source, units and observation times. It is not a live trading result.
- Download the synthetic worked example (CSV)
- Download the source and method record (JSON, version 1.0.0)
To check the arithmetic and CSV/JSON agreement locally, save both files beside the Python verification script and run python3 verify.py p48.json. Python 3 is required; no third-party packages are needed. The check does not verify source claims or provider performance.
These are downloadable research records. They do not connect to an account, execute a trade or provide live market data.
Frequently asked questions
Is every missing candle a zero return?
No. A no-tick interval, collector failure and unavailable valuation have different meanings. Resolve the provider contract and position state.
Did DN find that outages cause losses?
No. The negative missing periods are an invented teaching example, not a provider observation or causal finding.
Can sensitivity scenarios replace missing history?
They can show how assumptions affect a decision. They cannot turn unobserved returns into measured performance or statistical confidence bounds.
Continue the research
Optional research services and tools
The free example above can be used without buying a product. For a defined team question, the DN Research Desk offers separately agreed documentary briefs, source registers and worked examples. Scope, fee, delivery date and usage terms are agreed before work begins; an enquiry creates no payment obligation.
TradingView: Optional charting and alert-plan comparison. DN may receive referral benefits. Plans, market-data access and professional-user terms differ. The link does not validate this article’s assumptions or any trading strategy.
Commercial disclosure: DN’s own service and any referral relationship are separate from the research method. No provider paid for a favourable finding in this article.
Sources and review scope
Sources reviewed on 5 December 2026. Review dates are distinct from each source’s observation, publication and effective dates.
- Coinbase Exchange: Get product candles. Historical candle incompleteness, no-tick intervals, granularity and request limits. Evidence: Official documentation.
- Coinbase Exchange WebSocket overview. Sequence-gap and out-of-order message handling. Evidence: Official documentation.
- Pandas DataFrame.dropna documentation. Documented removal of missing values; not an economic policy. Evidence: Official documentation.
Corrections and limitations
To flag a possible error, use the DN contact route with this article’s URL, the disputed claim and the supporting source. The analysis is educational, not personalised investment, legal or tax advice. Documentation and synthetic examples do not establish realised returns or individual eligibility.




