You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Require strict contiguity for source-dir candle data
Source-dir data bypasses CandlestickManager gap filling, so any
non-contiguous candles would crash the downstream strict continuity
assertion. Replace the tolerance-based gap check with a strict
contiguity check (all intervals must be exactly 60_000ms); fall back
to CandlestickManager otherwise.
Adds test for small-gap fallback and CHANGELOG "Fixed" entry.
Credit: contiguity fix identified by Codex review of PR 559.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,9 @@ All notable user-facing changes will be documented in this file.
9
9
-**Total wallet exposure plot** - Backtests now output `total_wallet_exposure.png` showing long TWE (positive, blue) and short TWE (negative, red) over time.
10
10
-**External OHLCV source dir** - New `backtest.ohlcv_source_dir` config option to load 1m candle data from a pre-populated directory tree before falling back to exchange archives. Supports both `.npy` and `.npz` file formats.
11
11
12
+
### Fixed
13
+
-**OHLCV source-dir fallback behavior** - Non-contiguous source-dir candle data now falls back to CandlestickManager instead of propagating gappy series into downstream strict continuity checks.
0 commit comments