APPLIED STUDY · ORIGINAL LESSON
Learning plan and prerequisites
Before you begin: Complete candle anatomy and timeframes, and understand that trade count, traded volume and minimum price tick are different quantities.
- Aggregate a transaction list into fixed-time and fixed-count bars
- Explain why body direction changes with grouping
- Timestamp a signal only after its chosen bar completes
Mechanism and interpretation
An ordinary candle summarizes a selected group of observations: open is the first price, close the last, high the maximum and low the minimum. A fixed-time policy selects transactions in a clock interval. A fixed-trade-count policy selects a specified number of consecutive transactions, so its elapsed duration varies. Both are valid summaries when their grouping policies are explicit. Neither is automatically a more truthful account of the market simply because its shapes look clearer.
For clock bars, declare interval boundaries and which side includes an exact-boundary transaction. This lesson uses half-open intervals: a trade at the start belongs to the bar, while a trade exactly at the end belongs to the next bar. For count bars, declare the starting transaction and whether a partial bar is reset at session end. Volume is summed separately; three trades do not necessarily have the same total quantity as another three. The word tick in a transaction-count chart refers to a recorded event, not the minimum price increment used in shape-tolerance calculations.
Worked case — synthetic data
A synthetic feed has trades at seconds 0, 5, 9, 25, 40 and 55, with prices 100, 101, 99, 102, 100 and 103. Their quantities are 10, 20, 15, 5, 30 and 20. The 30-second interval [0,30) contains four trades and produces O=100, H=102, L=99, C=102 with volume 50. Interval [30,60) contains two trades and produces O=100, H=103, L=100, C=103 with volume 50.
Three-trade aggregation produces a first bar O=100, H=101, L=99, C=99 with volume 45; its first-to-last trade span is nine seconds. The second has O=102, H=103, L=100, C=103 with volume 55 and a first-to-last span of 30 seconds. The first clock bar is bullish while the first count bar is bearish, despite using the same underlying feed. The difference comes from grouping, not contradictory price records.
Context and failure modes
A count-based signal completes when its required final transaction arrives. A clock-based signal completes at the interval boundary, with the last eligible transaction supplying its close. Inactivity, trade corrections and session resets can affect both constructions. Comparing a strategy across aggregation types requires matching signal availability and execution assumptions, rather than simply treating the third count bar as simultaneous with the third clock bar. Final incomplete count bars need a declared inclusion or exclusion policy.
Practice task
Eight trades arrive at seconds 0, 2, 4, 6, 8, 10, 12 and 14 with prices 50, 51, 50.5, 52, 51, 50, 49 and 50. Build two four-trade OHLC bars and one clock bar covering [0,15). Compare their body directions without inventing any additional transactions.
Worked practice answer
The first four-trade bar is O=50, H=52, L=50, C=52 and is bullish. The second is O=51, H=51, L=49, C=50 and is bearish. The single clock bar is O=50, H=52, L=49, C=50, with equal open and close. Its doji body summarizes both the earlier rise and later decline; it does not mean prices stayed still during the interval.