TradeViora AcademyLearn. Analyze. Practice. Trade Smarter.
Menu

FREE FINANCIAL EDUCATION

Swing overlap and compression ratios

Study swing overlap and compression ratios through mechanisms, a synthetic worked case, practice, and explained assessment.

Market Structure

APPLIED STUDY · ORIGINAL LESSON

Learning plan and prerequisites

Before you begin: Complete swing mapping, nested ranges and range-width calculations.

Mechanism and interpretation

A swing interval can be represented by its lower and upper prices. Comparing intervals measures how much territory successive structures share. This lesson defines overlap length as max(0, min(upper 1, upper 2)−max(lower 1, lower 2)). Union span is max(upper 1, upper 2)−min(lower 1, lower 2). Their ratio is a simple interval intersection-over-union score between 0 and 1 when the union span is positive. A zero-width degenerate case is recorded as undefined rather than divided by zero.

Compression is a different measurement: current interval width divided by the preceding interval width. A value below 1 means the selected interval is narrower. High overlap does not automatically mean compression, and a narrower interval can move to a different price area with little overlap. Use intervals from a declared structural rule and scale. Comparing arbitrary handpicked extremes after seeing the chart creates a flexible story rather than a reproducible measure.

Worked case — synthetic data

Synthetic interval A spans 100 to 120, width 20. Interval B spans 105 to 118, width 13. Intersection is 118−105=13 and union span 120−100=20, so overlap score is 0.65. Width ratio B/A is 13/20=0.65. These happen to match because B lies entirely inside A; that equality is not general.

Interval C instead spans 115 to 135, width 20. Against A, intersection is 120−115=5 and union span 135−100=35, giving overlap 5/35≈0.1429. The width ratio is 20/20=1, so the structure shifted upward without narrowing. A sequence can therefore show decreasing overlap while maintaining identical widths. If a chart labels both cases “compression” merely because some bars intersect, it obscures the distinction between relocation and contraction. Store raw endpoints with both ratios so the interpretation can be audited.

Context and failure modes

These ratios summarise selected price territories and omit traversal time, number of reversals and traded volume. A single wide gap can alter an interval without showing continuous trading through its interior. If endpoints are confirmed with delay, the interval is available only when both endpoints are usable. Different swing thresholds generate different intervals and can change the measured trend in compression. Do not mix scales without an explicit comparison design.

Practice task

Interval D is 40 to 50 and interval E is 44 to 52. Compute intersection length, union span, overlap ratio and E/D width ratio. State whether E is narrower and whether it is completely contained in D.

Worked practice answer

Intersection is 50−44=6 and union span 52−40=12, so overlap is 0.5. Widths are 10 and 8, giving width ratio 0.8: E is narrower. It is not completely contained because its upper 52 exceeds D's upper 50. Narrowing and containment are different properties.

Topic assessment

Choose an answer before opening each explanation. These questions test the specific mechanism in this lesson.

1. What does a width ratio below 1 describe?

  1. Guaranteed lower future volatility
  2. Complete containment in every case
  3. A narrower current interval under the selected endpoints
Reveal answer and explanation

C. Width compares distances, not future outcomes or position.

2. Why do the two ratios match for B versus A?

  1. B is fully contained in A
  2. All overlap formulas equal width ratios
  3. B has no width
Reveal answer and explanation

A. Under containment, intersection is B's width and union span is A's width.

3. What is missing from these interval ratios?

  1. The interval widths
  2. The time and path taken through the territory
  3. The supplied endpoints
Reveal answer and explanation

B. Identical boundaries can arise from very different temporal paths.

Primary references and scope

Original explanation and synthetic calculations. Chart thresholds are explicit research conventions, not exchange rules or proof of predictive ability.