ForexBestRobots V304 · VHF28 + EMA50 · strategy119

NUMERIC REPRODUCTION · Python3.12+ standard library
This is research material,not an EA or a broker backtest. From the extracted root:
python3 authoring/calculate.py
python3 authoring/verify_independently.py
python3 authoring/check_boundaries.py

The programs reconstruct 375702 retained USD/JPY M1 records,6265 H1 bars,
VHF28,EMA50,ATR14,all59 first daily candidates,both models,fills and 0/2/4-pip
cost scenarios. The second program imports no primary calculation helper:
separate minute grouping,direct28-close windows,Fraction VHF comparisons,
80-digit weighted-prefix EMA/ATR and exact rational trade statistics.
Synthetic boundary fixtures test arithmetic only;they are never market candles.
Both programs were authored by the same assistant,not externally certified.

The supplied immutable frozen protocol is authoritative. SHA-256:
0e07f0139ea4d42f4d75a56430b838466009b6ca389ba5261e5046b78803ad73
Its durable identity was saved before the first VHF strategy replay. Reusing
previously studied2024 quotes is not an unseen holdout or future validation.
Original daily archives were not downloaded again;retained hashes are included.

INPUT CONVENTIONS
Minute labels are UTC interval ends,previously shifted from fixedGMT+1 by-1h.
M1 opening time=end-60. H1 groups are(start,end]. Price integers are millionths
of JPY per USD;divide by1000000. One pip=10000 integer units=0.01 JPY/USD.
Missing minutes and hours are never invented. All retained hours,including
partial ones,advance the indicators. EMA50 begins at the mean of first50
closes,then(49*EMA+2*C)/51;ATR14 uses its14-TR mean then Wilder smoothing.
VHF28 range uses28 closes,while28 changes reach an extra earlier anchor.
Zero denominator is unavailable;zero range with positive denominator is zero.

RULES
At t-2,the close lies above a rising EMA50 for long,below a falling EMA50 for
short. At t-1,the low touches/breaches EMA for long,the high for short.
At t,the close recovers strictly above EMA and prior high for long,strictly
below EMA and prior low for short. Touches allow equality,other comparisons
are strict. There is no required EMA side for the pullback close. First daily
means first completed pattern in07:00-15:00UTC weekdays,not first of a trend.
It consumes its date BEFORE quality,risk,VHF,entry or position checks.
Require29 complete consecutive localH1 hours;this does not certify the older
recursive history. VHF model adds unroundedVHF28>=0.40,with equality passing;
baseline omits only that gate. The threshold is a declared research choice.

Risk=1.5*ATR14 rounded UP to0.001JPY/USD,10-80pips inclusive. Exact nextM1
record only,no delayed substitution. Stop1R,target2R,time limit4clock hours.
Opening priority:breached stop at observed open,target at fixed level,time,
then conditional gap valuation. Range double-touch:stop first. Flag missing
held minutes even if a higher-priority opening exit acts. Unknown execution
between observations remains unverified. End-of-data valuation is flagged.
Opening exit times are model reference interval starts. Intraminute exits
have null exit_t and an exit_start/exit_end interval,not an invented second.
Opening-exit display frames censor that minute's later range.

RESULT AND LIMITS
Baseline42trades:-7.102039781419078R at2pips;filtered3:+0.9275479042920903R.
The filtered count is two net winners and one net loser;early2trades sum
-0.20202020202020202R,late1trade+1.1295681063122924R. One later trade exceeds
the annual gain. Three trades cannot establish a dependable filter edge.
Neither model has a held-path gap,truncation or same-minute double-touch here.
62boundary fixtures pass;separate indicator,decision,fill and metric checks
agree. R sums normalize by initial stop distance,not account sizing,equity,
compounding or percentage return. Costs0/2/4pips deduct once from identical
reference fills;not measured historical bid/ask,commission,swap or slippage.

Outputs are update/assets/v304-vhf-ema50-real-test/{market.json,*trades.csv,
*attempts.csv},research/calculation.json and calculation-summary.json.
SHA256.json covers every packaged member except itself. No credentials or
connection to a trading account is included. Reference sources are in the
article;the thresholds and new trading pattern are specific to this study.
