D07-F08-A05 · LEVEL 2 GUIDED LAB · SYNTHETIC DATA

Heikin-Ashi Transform

How does recursive synthetic OHLC smooth candle-to-candle presentation? 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

HA_close=(O+H+L+C)/4; HA_open=(HA_open_prev+HA_close_prev)/2; HA_high=max(H,HA_open,HA_close); HA_low=min(L,HA_open,HA_close)

Availability rule

An output at t may use only finite, basis-consistent observations available through t; chart alignment never moves the information clock backward.

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-F08-A05)
{
  "open": 102.4337036124137,
  "high": 102.4337036124137,
  "low": 98.68874251,
  "close": 100.21300550000001
}

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