ForexBestRobots V293 — Ultimate Oscillator guide #117

An indicator calculation package, not a trading backtest.
Real candles reconstructed from retained historical Forexite USD/JPY M1 quotes.
Original daily archives were not downloaded again. Their source URLs and
retained checksums are in input/source/original-archives.json.
The calculation specification was saved before the first UO calculation.

Version: fixed 7/14/28 nested windows on ONE H1 sequence, with weights 4/2/1.
These are not H1/H4/D1 chart timeframes. No setting or example-selection rule
was retuned after results. A_n=sum(BP,n)/sum(TR,n), not mean(BP/TR,n).
trueLow=min(current low, previous retained close)
trueHigh=max(current high, previous retained close)
BP=current close-trueLow; TR=trueHigh-trueLow
UO=100*(4*A7+2*A14+A28)/7
Equal-weight teaching comparison=100*(A7+A14+A28)/3.
Spread=main UO-equal comparison, in OSCILLATOR POINTS, never investment return.
BP is price-derived; it is not executed buying volume or order flow.

The very first recorded bar has no previous close and no BP/TR. The first
possible complete UO is index28, the 29th recorded bar. All three TR sums must
be strictly positive. Any zero TR window makes both complete lines unavailable
in this explicitly declared convention; no universal terminal equality is
claimed. One zero-range bar contributes zero to both rolling sums and does
not by itself invalidate a positive window. Unchanged closes can coexist with
nonzero intrabar ranges and a valid reading. No EMA initialization is involved.

Reproduce with Python standard library only:
1. Extract this ZIP.
2. python3 authoring/calculate.py
3. python3 authoring/verify_independently.py
Compare research/independent-verification.json and the three public outputs.

The primary uses exact integer prefix sums, Fraction event comparisons and
55-digit decimal output. The second independently groups minutes into H1 bars,
reconstructs every rolling window with direct sums, uses alternative BP/TR
identities and 80-digit arithmetic, and checks exact Fraction event conditions.
It imports the primary only afterward for synthetic boundary fixtures.
Both programs were written by the same assistant. This is reproducibility
checking, not an external audit or terminal certification.

375702 retained M1 records give 6265 H1 bars: 6178 complete, 87 partial,
52 gaps before recorded hours. Minute end labels in fixed GMT+1 were shifted
back one hour to UTC in the retained input. H1 buckets are (start,end].
Missing bars and prices are not invented. After a gap, BP/TR uses the previous
RETAINED close. Numeric rolling windows retain partial/gap bars.
A clean window needs 29 complete underlying H1 bars joined by 28 one-hour
steps. A fresh event additionally needs BOTH current and previous windows
clean and both UO values available. Adjacent hours across UTC midnight qualify.
Exact50 is neither above nor below; exact30/70 is inside the illustrative band.
Fresh mid-up: previous<=50 and current>50; mid-down mirrors this.
Return-low: previous<30 and current>=30; return-high: previous>70/current<=70.
Comparisons precede display rounding. Events at the first visible bar are
sliced from full history, not restarted at the chart crop.

Frozen first-eligible example selection after index500 yields:
midline index507 (2024-01-31 02:00 UTC), opposite weight classifications
index506 (2024-01-31 01:00 UTC), previous close below current low index508
(2024-01-31 03:00 UTC). These are THREE ADJACENT HOURS IN THE SAME EPISODE,
with overlapping 80-bar charts, not independent historical tests.
The last example has adjacent complete H1 bars; it is not a missing-hour case.
Index500 is only an example-selection floor, not a mathematical warmup.
Each chart ends at the observation A and contains no later bars.
P on the range chart marks the previous close. A is not a trade entry or exit.
Main/compare and 40/80 controls change only the displayed lines/crop.
No divergence pivots, entry/stop/exit rules, trading costs or profits are tested.

UNITS AND OUTPUT PRECISION
CSV OHLC fields are human prices in JPY per USD. Fields ending _micro are
INTEGER MICRO-PRICE UNITS: divide by 1000000 to recover JPY per USD. This
applies to BP, TR, true bounds, previous close and rolling totals alike.
A7/A14/A28 fields are fractions from0 to1; the article table shows100*A_n.
CSV ratios use high-precision decimal strings; market.json uses display floats.
The interactive shows UO, equal, spread and100*A_n to six decimal places,
prices and price-derived totals to three. Summary examples use human-price
units and explicitly suffixed A_n_percent fields. Epoch times are UTC seconds.

SHA256.json lists the included original files. The three public files should
be byte-identical after reproduction. Original daily ZIP archives, broker
ticks and any trading strategy are outside this package.
