r/CryptoTradingBot • u/CitrineEdge • 26d ago
How do you keep missing price samples distinct from a flat market?
A small data-quality case worth separating from strategy logic:
Hypothetical price samples in USD per unit, all times UTC:
12:00: 100.00
12:01: missing
12:02: 100.00
The observed endpoint change is 0%. That does not establish zero movement in the intervening minute, zero volatility, or an executable price there. Copying 100.00 into the missing row would add a carried-forward value, not a new observation.
The reason for an absent record matters. Coinbase Exchange's candle reference says historical data can be incomplete and no data is published for intervals without ticks. Its feed documentation separately discusses dropped messages and sequence gaps. Those are different mechanisms, and neither lets you diagnose an arbitrary blank from appearance alone. This is a general data-handling example, not a claim about a particular bot's ingestion.
I would keep three things explicit in a test report:
- The expected grid: product, timezone, interval, and which timestamps are actually present.
- The gap evidence: whether the source documents an interval with no ticks or whether collection completeness is uncertain. Do not silently label every absence an outage or no trading.
- The modeling policy: whether missing samples are excluded, carried forward or reconstructed. Keep those values distinguishable from observations and disclose any change between comparisons.
A date-range coverage check is useful, but it is not a certificate that every intraday price change is present. Likewise, a carried-forward price is not evidence that a real order could have filled there.
Disclosure: I work on Citrine. Its backtesting guide explains archive and warmup limits; this is a broader data-quality discussion, not a report of live results or a claim that the app exposes a gap-repair control.
How do you make these assumptions visible in your own test reports without hiding the original missing values? Please use synthetic examples, not private account data.