{
  "id": "usdjpy-h1-weekend-gap-fade-v1",
  "frozen_utc": "2026-11-09T15:53:03Z",
  "source": {
    "provider": "HistData.com",
    "symbol": "USDJPY",
    "format": "Generic ASCII Tick",
    "source_utc_offset_hours": -5,
    "price_point": "0.001",
    "points_per_pip": 10,
    "months": {
      "first": "2024-01",
      "last": "2025-12"
    },
    "specification": "https://www.histdata.com/f-a-q/data-files-detailed-specification/"
  },
  "periods": {
    "development": [
      "2024-01-01",
      "2025-01-01"
    ],
    "holdout": [
      "2025-01-01",
      "2026-01-01"
    ]
  },
  "clock": {
    "calendar_zone": "America/New_York",
    "friday_last_in": [
      "16:00",
      "18:00"
    ],
    "sunday_first_in": [
      "16:00",
      "19:00"
    ],
    "minimum_weekend_hours": 36,
    "bar_clock": "UTC clock-hour bins"
  },
  "data_rule": "Verify the original monthly ZIP SHA-256 and exact CSV identity and CRC against prior USDJPY study pins. Convert the fixed source clock to UTC once by adding five hours. Use all archived Bid and Ask quotes in the selected windows, exact integer points, and original CSV order for ties. Quarantine any study week with a backward step affecting its Friday-through-Monday observation windows. Record coverage and skips. Do not fill missing quotes.",
  "anchors_rule": "Sample every Sunday by the New York calendar. Take the last recorded quote of the preceding New York Friday only if it occurs at or after 16:00 and before 18:00 local time. Take the first recorded quote at or after Saturday 00:00 New York time only if it occurs at or after Sunday 16:00 and before 19:00 local time. Require a gap in time of at least 36 hours between these quotes. The clock windows define the study and adapt to New York daylight saving time.",
  "levels": {
    "minimum_gap_pips": 5,
    "stop_distance_in_gaps": 1,
    "target": "Friday midpoint"
  },
  "setup_rule": "Measure the opening gap from Friday midpoint to first Sunday midpoint using simultaneous Bid and Ask. One USDJPY pip is 0.01 JPY. Qualify an absolute gap of at least 5 pips. Fade it: a down gap is long, an up gap is short. The common target is Friday midpoint. The common stop is one opening-gap distance beyond the opening midpoint away from target. Use doubled points for exact half-point midpoints and levels.",
  "execution": {
    "confirm_bars": 3,
    "deadline_hours_from_opening_bar": 8,
    "max_confirmation_quote_delay_seconds": 60,
    "max_exit_quote_delay_seconds": 60,
    "max_inter_quote_gap_seconds": 300,
    "additional_cost_pips_per_side": "0.1"
  },
  "open_rule": "The opening model attempts entry on the first archived Sunday quote used to define the gap. Long entry uses Ask; short uses Bid. Require the executable closing side strictly between stop and target and the entry-side distance to target strictly greater than 0.1 pip. Reject the attempt if this very quote fails. Keep the observed spread; no spread cap.",
  "confirmation_rule": "The opening H1 bar begins on the UTC hour containing the first Sunday quote and includes only observed post-open quotes. Use the first of the next three H1 closes, counting the opening bar, whose midpoint close has moved strictly toward Friday midpoint versus both the bar open midpoint and the weekend-open midpoint, and remains strictly on the opening side of Friday midpoint. Enter using the first quote at or after the H1 close, within 60 seconds inclusive, under the same price checks as the opening arm. The waiting path is canceled if the executable closing side touches or passes stop or target before or at that quote. A quote gap greater than 300 seconds makes the path unavailable before assessing the next quote. With no confirmation, scan strictly before the third close. If confirmation exists but its first quote is missing, scan through the inclusive entry cutoff.",
  "exit_rule": "After entry, use the first later source row whose executable closing side reaches or passes stop or target, at the observed price. Sell long at Bid and cover short at Ask. The common time deadline is eight hours after the start of the opening UTC H1 bar. At or after the deadline time takes priority, use the first quote within 60 seconds inclusive. A greater-than-300-second gap between observed quotes before resolving the exit or a missing deadline quote leaves the exit unavailable. Entered and completed counts stay separate.",
  "cost_rule": "Observed Bid/Ask already account for spread. Subtract an additional 0.1 pip per side from modeled price movement. Define 1 R as the raw executable entry-price distance to the common stop. Show sensitivity at zero and double additional cost using fixed entries/exits and observed spreads. This is quote replay on one source.",
  "outputs_rule": "Report week and gap counts, skip states, observed opening and entry spreads, separate entered/completed counts, net pips and R, and paired completed results. Choose earliest holdout week completed by both, earliest completed opening trade whose waiting arm is canceled at target, and earliest completed confirmation whose entry spread is below opening spread. Use distinct weeks and fallback to earliest unused completed opening trade when a category is empty. Do not select examples by profits. Plot genuine H1 midpoint candles and source quote excerpts."
}
