Ultimate Oscillator 7/14/28 + EMA200: fixed USD/JPY 2024 reference test.
The immutable revision 1 protocol was saved before the first replay.
This 50-midline experiment does not reproduce the original divergence method.
The same assistant authored both programs; no external certification is claimed.

REPRODUCE WITH PYTHON 3 STANDARD LIBRARY, WITHOUT NETWORK OR TERMINAL:
python3 authoring/calculate.py
python3 authoring/verify_independently.py
python3 authoring/check_boundaries.py
Compare the three outputs under update/assets/v297-ultimate-midline-ema200-real-test/
with reference-public/ byte-for-byte. CHECKSUMS.json covers all package members
except itself. The original first-replay witness is retained.

UO: BP = close - min(low, previous retained H1 close).
TR = max(high, previous retained close) - min(low, previous retained close).
A_n = sum(BP last n) / sum(TR last n), n = 7, 14, 28.
UO = 100 * (4*A_7 + 2*A_14 + A_28) / 7. Any zero denominator: unavailable.
No smoothing or Wilder ATR substitution in these three ratios.
EMA200: first 200 retained closes averaged for seed, then alpha 2/201.
ATR14: first 14 available TRs averaged, then Wilder alpha 1/14.
All retained bars, including partial hours, advance the calculations once.
Primary: integer deque sums and Decimal 55 EMA/ATR. Verifier: independent
prefix sums, exact Fraction UO, Decimal 80 weighted-prefix EMA/ATR, date-grouped
candidates, separate event resolver and exact Fraction R statistics.
The verifier imports no primary indicator, candidate, fill or metric routine.
75 synthetic boundary scenarios are internal checks, never published chart data.

CANDIDATES: at least 1000 retained H1 closes, Mon-Fri, H1 ends 07:00-15:00 UTC
inclusive, no seasonal shift. Long previous UO <= 50 and current UO > 50;
short previous UO >= 50 and current UO < 50. Use exact integer comparisons.
The first numeric cross consumes the UTC date BEFORE every rejection check.
All 30 H1 bars in the two-reading union must be complete consecutive hours,
60 consecutive retained minutes each. A rejected date cannot be replaced.
Filtered: long close > current EMA200, short close < current EMA200.
Equality fails, no slope condition. Unfiltered removes ONLY EMA200 context.
Risk = 1.5*signal ATR14 rounded UP to a multiple of 0.001 JPY/USD;
10-80 pips inclusive. One pip = 0.01 JPY/USD = 10000 micro units.
Enter at OPEN of exact next M1 record ending signal_end+60; missing rejects.
Stop 1R, target 2R, four CLOCK hours, one open position per model.
Opening priority: stop at adverse observed open, fixed target, due time exit,
then next-open gap valuation. If both levels touched within M1: stop first.
Keep held-path gap flags even if opening stop/target/time has priority.
No accepted trade in either model has a held gap, truncation or dual touch here.
Input still has 87 partial H1 bars and 52 gaps; 31 first candidates fail quality.

TIME AND UNITS: M1 timestamps are UTC interval END labels, shifted back one
hour from the archive's fixed GMT+1. H1 groups are (start,end]. Integer *_micro
and *_1e6 prices are millionths of JPY per USD: divide by 1000000.
CSV BP/TR sums also use these integer price units. UO is dimensionless.
Exact UO numerator/denominator may exceed JavaScript safe integers and are
stored as STRINGS in JSON/CSV; do not parse them as ordinary JS numbers.
Public OHLC, EMA200 and ATR are price units. entry_t is interval-start time;
entry_minute_end is its end. exit_start/exit_end delimit the observed minute.
For within-minute exits exit_t is null/empty: THE EXACT SECOND IS UNKNOWN.
Observed-opening exits have a known reference boundary time. Final-minute
OHLC may contain prices after that boundary; later extremes do not set its fill.

COSTS: 0/2/4 pips once per completed round trip, main 2 pips; identical
reference fills across scenarios. Not measured bid/ask, commissions, swap or
slippage. R normalizes each trade by its own initial stop distance; it is not
account return, position sizing or compounding. Unweighted pip sums can have
a different sign from R totals. No trading rules were tuned after the outcome.
The main model is +2.386754 R gross, -0.807642 R at 2 pips, -4.002039 R at 4.
The 2-pip baseline is -0.176364 R despite +100.0 net pips. EMA200 reduces
trades and drawdown but worsens total R. The two half-years have opposite signs.
The first trade is NOT the first loss. Chronological examples are fixed.
No unseen holdout, complete tick path, live execution or future profit is claimed.

Frozen protocol SHA-256: d7347e6a97b9bccb2028c404d3fa521f4c7a68747cb9ed0a9e5e9f047176ff01
