
Missing candles in OHLCV data: how to detect gaps and backfill them safely
Detect missing candles in OHLCV bar data with a UTC grid and a trading calendar, then backfill safely without forward-filling volume or range.
Strategy research, backtesting harnesses, and signal construction.

Detect missing candles in OHLCV bar data with a UTC grid and a trading calendar, then backfill safely without forward-filling volume or range.

Weekly candle open and close times for forex, crypto, and US stocks, and how to rebuild either week convention from timestamped SiftingIO bars in pandas.

Consolidated bid/ask spreads measured live on BTCUSD, EURUSD, XAUUSD and more: why one price is really a band, and how to reproduce the numbers yourself.

How Quantitative Trading at Brown uses intraday US equities OHLCV bars from the SiftingIO API for student research on returns, volatility, and trading volume.

1-minute OHLCV bars are the base timeframe. The exact rules for resampling minute bars into 5m, 15m, and 1h bars, with the alignment and gap traps to avoid.

When a daily candle opens and closes in US stocks, forex, and crypto, why weekend gaps exist, and why two providers' daily bars can legitimately differ.

Five ways historical price data silently corrupts a backtest: adjustment method, venue-dependent highs and lows, gap policy, session cuts, and restated bars.

Build a total-return series from as-traded prices, split factors, and cash dividends with reinvestment math, and see where the adjusted-close shortcut misleads a backtest.

Why the same asset shows different prices on different venues, how naive averages get poisoned by bad feeds, and how a weighted median keeps the price honest.