APPLIED STUDY · ORIGINAL LESSON
Learning plan and prerequisites
Before you begin: Know candle highs/lows, inside bars and range width.
- Calculate interval overlap consistently
- Distinguish two overlap normalisations
- Interpret overlap alongside directional progress
Mechanism and interpretation
Overlap describes how much of two bars' price ranges is shared. For ranges[A_low, A_high] and[B_low, B_high], intersection width is max(0, min(A_high, B_high)−max(A_low, B_low)). One normalisation divides this by union length; another divides by the smaller range width. They answer different questions. Intersection-over-union measures overall similarity, while dividing by the smaller width measures how fully the smaller bar is contained. Declare the formula instead of calling both an overlap percentage.
Repeated high overlap can describe local rotation or acceptance, but it does not imply the market is directionless. A series of broad bars can overlap substantially while their centres rise. Combine overlap with a separate net-progress measure and a fixed lookback. A no-overlap event can arise from a session gap rather than an unusually directional intrabar auction, so retain session context. Zero-width ranges require a denominator policy and should not be forced into a finite ratio by arbitrary substitution.
Worked case — synthetic data
Synthetic bar A spans[100,110] and bar B[106,114]. Intersection is[106,110], width 4. Union spans[100,114], width 14, so intersection-over-union is 4/14=28.57%. The smaller bar width is 8, giving overlap coefficient 4/8=50%. The same geometry has two different legitimate percentages because the denominators differ.
Bar C spans[108,112], entirely insideB. Its intersection withB is 4 and union width 8, so intersection-over-union is 50%; the smaller-width coefficient is 100%. Calling C “fully overlapping” is correct under containment but does not mean its range equalsB's. A sequence of centres 105,110,110 also reveals that the first transition made upward progress while the second mainly compressed. The ratio alone omits that distinction.
Context and failure modes
Very large bars can make small following bars appear highly contained even when their absolute movement matters. A threshold chosen after seeing a breakout can turn ordinary overlap into a hindsight consolidation label. Preserve raw widths, chosen normalisation and event timestamps so the result can be reproduced and compared across volatility regimes.
Practice task
Compare ranges[50,56] and[54,60]. Calculate intersection, union length, intersection-over-union and smaller-width coefficient. Then state what additional information is needed to determine open-to-close direction.
Worked practice answer
Intersection is[54,56], width 2; union length is 10. Intersection-over-union is 20%, and smaller-width coefficient is 2/6=33.33%. Opens and closes are required for body direction; highs and lows alone do not provide it.