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

Relative Momentum Index

What changes when RSI measures m-period rather than one-period momentum? 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

RMI=100*RMA(max(P_t-P_(t-m),0),n)/(RMA(up,n)+RMA(down,n))

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-F03-A18)
{
  "value": 36.68238933579245
}

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