D07-F03-A26 · LEVEL 2 GUIDED LAB · SYNTHETIC DATA

Detrended Price Oscillator

What shorter fluctuation remains after shifting price against a centered-cycle baseline? 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

DPO_t = P_(t-floor(n/2)-1) - SMA_n(P)_t

Availability rule

Compute and publish DPO at index t only after P_t and the trailing SMA ending at t are available. The displaced price is effective_for t-floor(n/2)-1, but the DPO value remains available_at t and must never be back-dated.

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 (D07-F03-A26)
{
  "value": 2.2657371385714242
}

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