Series build: a count of 0.01 is the vendor's zero, a ratio bar closing at 0 is a hole (0.3.2) - #34
Merged
Conversation
…ng at 0 is a hole (0.3.2) Two conventions measured on the full-history pulls of 2026-09-17, both of which the nightly routine would also hit on the wrong day: - TradingView prints a count of zero as 0.01. INDEX:HIGQ reads 0.01 on 2020-03-13 (the crash week's bottom) and INDEX:LOWN on 65 of 5000 days. The whole-number check refused the file. A count series value below 0.5 is now stored as 0; the check then applies to everything else. - USI:PCCE carries two bars (2026-06-18, 2026-07-02) with a real open and high and a zero low and close. A put/call ratio of zero is impossible, so a ratio bar with a non-positive Close is dropped and named in the build's output, never stored as 0; a zero open, high or low beside a positive close is still refused. The raw file keeps what the vendor sent; only the built series carries the meaning. Tests for both, and a file left empty by dropping is refused. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two vendor conventions measured on the full-history pulls of 2026-09-17, both of which the nightly routine would also hit on the wrong day:
INDEX:HIGQreads 0.01 on 2020-03-13 (the crash week's bottom),INDEX:LOWNon 65 of 5000 days. The whole-number check refused the file. A count value below 0.5 is now stored as 0.USI:PCCEhas two (2026-06-18, 2026-07-02), real open and high, zero low and close. Dropped and named in the build output, never stored as 0. A zero open, high or low beside a positive close is still refused.Raw files stay verbatim; the built series carries the meaning. 0.3.1 → 0.3.2.
Test plan
🤖 Generated with Claude Code