APPLIED STUDY · ORIGINAL LESSON
Learning plan and prerequisites
Before you begin: Understand volume units, timestamps and session boundaries.
- Derive interval volume from cumulative counters
- Detect resets and corrections
- Preserve missing data instead of inventing quiet trading
Mechanism and interpretation
Some feeds provide cumulative session volume rather than the quantity traded in each sampled interval. Under a monotonic counter within one session, interval volume is the current cumulative value minus the previous value. Summing cumulative observations instead of differencing them repeatedly counts earlier trades. At a session reset, the same subtraction produces a negative number that is not negative trading activity. Reset boundaries must be handled explicitly using the feed's documented scope.
Counters can also be corrected, delayed or duplicated. A downward revision within a session may reflect a correction rather than a new session. Do not automatically turn every negative difference into zero: that would conceal the inconsistency and break reconciliation. Keep the raw counter, the derived interval value, a session identifier and a quality flag. If a sample is missing, the next difference can represent a longer combined interval; assigning it all to the last minute creates a false volume spike.
Worked case — synthetic data
Synthetic session counters at 09:20,09:25 and 09:30 are 1,000,1,600 and 2,100 units. If the session starts from zero and the first interval begins at the opening, interval volumes are 1,000,600 and 500, summing to 2,100. Summing counters instead gives 4,700 and double-counts earlier activity. The next session's first counter is 200; subtracting the prior session's 2,100 would give −1,900, but the reset-aware first interval is 200.
Within the original session, suppose the 09:25 sample is absent and the feed jumps from 1,000 at 09:20 to 2,100 at 09:30. The 1,100 difference covers ten minutes. It cannot be split into two exact five-minute volumes without additional data. A same-slot relative-volume study should flag those intervals as unresolved or aggregate its comparison to ten minutes, rather than inventing 0 then 1,100.
Context and failure modes
The first observed counter may include activity before your data collection began, so treating it as one short interval can be wrong. Auctions, off-session trades and provider corrections can alter scope. A reconciliation check validates arithmetic consistency, not completeness of venue coverage or the truth of every source record.
Practice task
Counters in one declared session are 500,900,850,1,200. Calculate raw differences after the first value and propose a treatment for the negative difference before using relative-volume signals.
Worked practice answer
Differences are +400,−50,+350. Flag the −50 as a counter inconsistency or correction requiring provider-policy review; do not call it negative volume or silently convert it to a quiet zero interval. Retain the raw observations, suspend affected derived signals, and recompute if corrected records become available.