Before you begin: Complete confirmed swing mapping and event timestamp lessons.
Define when a stored reference stops being eligible
Separate age expiry from price invalidation
Account for untested levels at the sample boundary
Mechanism and interpretation
A structural reference can remain visible long after it was created, but a research rule needs a finite eligibility policy. This lesson gives each level a creation time, an availability time and an expiry condition. The clock begins at availability because that is when the reference could first be used. A level remains eligible through a declared number of subsequent completed observations unless an earlier specified invalidation occurs. Historical visibility and current eligibility are separate fields.
Choose expiry before evaluating outcomes. Age limits, confirmed opposing structure or a session boundary are possible policies, each with different consequences. A level that expires without being revisited is an observed no-revisit outcome within its window; it is not silently removed. A level still active when the dataset ends is censored for longer-horizon questions. It has not yet demonstrated permanent survival or permanent failure. Explicit endpoint rules prevent young levels from being compared with older levels that had more time to be tested.
Worked case — synthetic data
A synthetic level 100 becomes available at the close of observation 10. The rule allows the next five completed observations,11 through 15, and expires it immediately after 15. A separate invalidation requires a close below 98. Closes at 11,12 and 13 are 103,101 and 97.5. The level is invalidated at 13, before its scheduled age expiry; a later rebound at 14 cannot count as a response to an eligible level under this policy.
A second level 120 becomes available at 20 with the same five-observation lifetime. Data ends at 23 without an invalidation or revisit. The record has only three completed eligible observations,21 through 23, so a study of five-observation revisit rates must flag it as censored or apply a predeclared censoring method. Counting it as a full-window non-revisit would give it less opportunity than older levels. Conversely, dropping every full-window non-revisit would exaggerate the apparent importance of levels that happened to attract later price action.
Context and failure modes
Do not reset a level's age merely because it remains drawn on a chart or because a nearby new level appears. A reset requires a specified new event and new identifier. Missing observations can distort a bar-count lifetime; elapsed-time lifetimes behave differently across session gaps. Track the reason for retirement so age, invalidation, replacement and data cutoff are not merged into one ambiguous status.
Practice task
A level becomes available at observation 30 with a four-observation lifetime and no early invalidation. At which observations is it eligible? If data ends after 32, how many eligible observations were seen and what status applies to a four-observation outcome study?
Worked practice answer
It is eligible at 31,32,33 and 34, expiring after 34. A dataset ending at 32 contains only two of the four eligible observations, so the level is censored for a complete four-observation outcome. It must not be counted as if all four opportunities had elapsed.
Topic assessment
Choose an answer before opening each explanation. These questions test the specific mechanism in this lesson.
1. Why start the age clock at availability?
The level could not be used as confirmed before then
Availability always equals the extreme time
Older levels guarantee stronger responses
Reveal answer and explanation
A. The eligibility clock should match when the information became usable.
2. Why is the first level retired at 13?
The later rebound changes the past
The defined invalidating close occurs before age expiry
Five observations have already passed
Reveal answer and explanation
B. Close 97.5 is below the 98 invalidation threshold.
3. What does censoring mean for the second level?
The level is proven never to be revisited
The data should be invented
The full evaluation window has not been observed
Reveal answer and explanation
C. The sample ends while the longer-window outcome is still unresolved.
Primary references and scope
Original explanation and synthetic calculations. Chart thresholds are explicit research conventions, not exchange rules or proof of predictive ability.