Learning objectives
- Track untouched references as a chronological state process.
- Distinguish an observed trade touch from an OHLC interval crossing.
Prerequisites: Calculate prior pivots and understand trade versus bar data.
Mechanism and interpretation
An untouched reference needs a birth time, a touch rule and an expiry rule. In a trade-level rule, a pivot remains active until a qualifying trade executes at that price or within a specified tolerance. In a bar-range proxy, a bar touches when low≤level≤high. The proxy is coarser: a bar can bracket a price even if a gap in executions skipped it.
Maintain a ledger as time advances: add newly available references, update touches using only later observations, and retire old references after a fixed horizon. Never start with today's chart and retain only the levels that look important. That selects survivors. For a retest study, record the full birth cohort, including levels that were touched immediately and those never reached within the observation window.
Worked case · synthetic data
A pivot at 102 is created after session A. Session B ranges 103–108, so it stays active under the bar-range proxy. Session C ranges 101–105, so the proxy marks it touched. If trade-level records show prints only at 101 and 103 in the relevant crossing, an exact-print rule has not observed a trade at 102. Both results can be internally consistent because their definitions differ.
Failure modes and context
An opening gap may cross a level without executable liquidity there. Old levels accumulate if no expiry is specified, making almost any later turn appear close to something. Corporate actions can move the coordinate system. Right-censored levels, whose observation window ends early, should not be counted as confirmed never-touched outcomes.
Practice assignment
Create a reference at 150 with a three-session horizon. Subsequent ranges are [152,155], [151,154], [149,153]. Give its first proxy-touch time. If the dataset ends after session two, explain how the record should be labeled for a three-session retest-rate estimate.
Worked answer
The first proxy touch is session three. With only two observed sessions, the record is censored before its complete horizon. Exclude it from a simple complete-cohort proportion or use an explicit time-to-event method. Calling it a three-session non-touch would bias the estimated retest frequency downward.
Check your understanding
Question 1
What makes a level a survivor in a biased chart selection?
- Every birth cohort is retained
- The formula uses three prices
- Only still-untouched levels are retained
Reveal answer and reasoning
C. Only still-untouched levels are retained
Dropping early touches after seeing outcomes changes the sample being studied.
Question 2
Does a bar spanning a level prove an exact execution at it?
- Yes if the bar is green
- No
- Yes for every instrument
Reveal answer and reasoning
B. No
OHLC records extremes and cannot identify every intervening trade.
Question 3
What should an incomplete three-session observation be called?
- Censored
- A confirmed non-touch
- A profitable signal
Reveal answer and reasoning
A. Censored
The required observation horizon has not fully elapsed.
