APPLIED STUDY · ORIGINAL LESSON
Learning plan and prerequisites
Before you begin: Understand pivot timestamps, identifiers and set intersections.
- Define an explicit matching tolerance
- Measure detection agreement separately from price differences
- Resolve disagreements before evaluating outcomes
Mechanism and interpretation
Two people or algorithms may mark different pivots on the same chart. Agreement should be measured before using those labels to compare outcomes. This lesson matches only pivots of the same type. Process the first annotator's pivots chronologically and pair each with the nearest unmatched second-annotator pivot within a stated timestamp tolerance; ties go to the earlier second timestamp. Each pivot can be used at most once. This is a declared greedy matching rule, not a claim that it optimises every possible matching objective.
After matching, let M be the number of pairs and A and B the two pivot counts. A Jaccard-style agreement is M/(A+B−M); a symmetric match score is 2 M/(A+B). Both are 1 when the sets fully match under the tolerance and 0 when there are no matches, provided denominators are positive. Separately report timing differences and price differences for matched pairs. High price agreement among a few selected matches cannot hide many unmatched pivots.
Worked case — synthetic data
Synthetic high-pivot timestamps from annotator A are 5,12 and 20. Annotator B marks 6,12,18 and 25. With tolerance one observation, pairs are(5,6) and(12,12). The 20 pivot has no eligible match because 18 is two observations away. Thus M=2, A=3, B=4; agreement is 2/(3+4−2)=0.4 and symmetric score 4/7≈0.5714.
Suppose the paired price differences are 1 and 0.5 units. Mean absolute price difference among matches is 0.75. That small conditional difference does not mean the full maps agree strongly: three combined detections remain unmatched. Before evaluating any trading hypothesis, review whether the disagreements arise from tie rules, confirmation windows, data versions or different structural scales. If a tolerance of two observations is later tested, report it as a sensitivity analysis rather than replacing the original one-observation result silently.
Context and failure modes
Matching can depend on processing order when several candidates lie within tolerance. For dense maps, a globally optimised one-to-one assignment may be preferable, but its objective must be specified in advance. Do not allow high pivots to match lows or occurrence timestamps to match confirmation timestamps without explanation. Agreement is reproducibility evidence, not proof that either annotator identified economically meaningful turning points.
Practice task
Annotator A marks highs at 4 and 10; B marks highs at 5,11 and 17. With tolerance one observation and the same matching rule, calculate M, Jaccard-style agreement and symmetric score. What remains unmatched?
Worked practice answer
Pairs are(4,5) and(10,11), so M=2. Agreement is 2/(2+3−2)=2/3≈0.6667 and symmetric score 4/5=0.8. B's pivot 17 remains unmatched. Both scores reflect that extra detection rather than considering only the two successful pairs.