D08-F07-A02 · LEVEL 2 GUIDED LAB · SYNTHETIC DATA

Single-Asset New-High/New-Low Signal

Did the current bar exceed the prior-only range without equality ambiguity? Walk the evidence clock one stage at a time. This lab teaches the publication contract; it does not simulate returns, platform parity, or trade performance.

Selected expression

new_high_t = H_t > max(H_(t-n..t-1)); new_low_t = L_t < min(L_(t-n..t-1))

Availability rule

A state at t may use only observations available through t; confirmed swings retain their confirmation timestamp and are never relabeled as known at the pivot bar.

calculated · step 1 of 7

Verified synthetic fixture

This lab is paired with datasets/implementation-fixtures.json: 96 deterministic, oldest-to-newest observations spanning oscillating, rising, and moderating regimes. It is teaching data—not market history or predictive evidence.

Canonical latest output (D08-F07-A02)
{
  "upper": 109.83623682,
  "lower": 99.69159419,
  "new_high": false,
  "new_low": false
}

Executable checks cover this result, flat/zero-volume boundaries, invalid timestamps, and prefix causality in both language entry points.