{
  "id": "eth-h4-impulse-perpetual-discount-v1",
  "frozen_utc": "2026-11-09T13:48:39Z",
  "symbol": "ETHUSDT",
  "months": {
    "first": "2020-12",
    "last": "2026-09"
  },
  "feeds": {
    "spot": {
      "archive": "data/spot/monthly/klines/ETHUSDT/15m",
      "interval_ms": 900000,
      "subdirectory": "spot",
      "interval": "15m"
    },
    "perpetual": {
      "archive": "data/futures/um/monthly/klines/ETHUSDT/4h",
      "interval_ms": 14400000,
      "subdirectory": "perpetual",
      "interval": "4h"
    }
  },
  "periods": {
    "development": [
      "2021-01-01T00:00:00Z",
      "2025-01-01T00:00:00Z"
    ],
    "holdout": [
      "2025-01-01T00:00:00Z",
      "2026-10-01T00:00:00Z"
    ]
  },
  "data_rules": [
    "Verify each monthly ZIP against its publisher SHA-256 CHECKSUM. Convert microsecond spot timestamps to a UTC millisecond open grid, preserving and validating the source close timestamp at source precision.",
    "A bar with missing or nonpositive volume is unavailable. Aggregate spot H4 from all 16 consecutive usable spot M15 candles in a UTC four-hour window. A USD-M ETHUSDT H4 traded-price close is usable only from its complete aligned archive row with positive volume.",
    "Each period resets the impulse cooldown, retains price history for the trailing body median, and is half-open. Keep only setups with enough calendar time for the latest possible M15 exit at setup open plus 40 hours, strictly before period end."
  ],
  "setup": {
    "prior_h4_bodies": 20,
    "minimum_body_multiple": "1.5",
    "close_bottom_fraction": "0.25",
    "cooldown_h4": 10
  },
  "setup_rule": "Spot H4 closes below its open, range is positive, real body is at least 1.5 times the median of the absolute real bodies of the immediately preceding 20 complete spot H4 candles, median is positive, and close is at or below low + 0.25 × range. Qualifying impulses are screened on a shared schedule: after each accepted impulse, the next nine H4 open slots cannot start another setup, independent of later confirmation or filter. A missing prior bar cannot be replaced with an earlier one.",
  "confirmation": {
    "next_h4": 3,
    "range_midpoint": "0.5"
  },
  "confirmation_rule": "Evaluate the next three complete spot H4 bars sequentially. A bar low at or below the impulse low cancels before testing its close. Otherwise the first close strictly above (impulse high + impulse low) / 2 confirms. An unavailable H4 before resolution makes confirmation unavailable. No confirmation by the third close means expiration.",
  "basis_rule": "D_t = 10000 × (USD-M ETHUSDT perpetual traded close / ETHUSDT spot close − 1), in basis points on the same closed UTC H4 window. The filter passes when D_setup < 0 and D_confirmation > D_setup, including a move to zero or a premium. Use unrounded inputs. The base and filtered R statistics share the matched eligible opportunity schedule. If either paired close is unavailable, record the opportunity as basis unavailable and omit it from both arms. Decompose matched base into filtered and rejected. Trade only modeled spot ETHUSDT long.",
  "execution": {
    "minimum_risk_fraction": "0.005",
    "target_r": "2",
    "max_hold_h4": 6
  },
  "entry_exit_rule": "Entry reference is the first M15 open at the close of the confirming H4. If unavailable, entry is unavailable. Stop is the impulse low; require entry reference − stop ≥ 0.005 × entry reference. Target is entry reference + 2 × initial risk. Scan the entry M15 through the slot immediately before the 24-hour boundary. For each M15 check its open first: at or below stop exit at the open; at or above target exit at the target. Otherwise check low and high for stop/target touches; if both touch, primary uses stop first and sensitivity target first. If neither touch occurs, exit at the M15 open at 24 hours. Any unavailable M15 before an exit resolves, including the timed exit open, leaves the outcome unresolved and omitted from R statistics. Touches and the 24-hour deadline are model references, without queue or quote replay.",
  "costs": {
    "fee_per_side": "0.001",
    "adverse_slippage_per_side": "0.0002",
    "stress_multiplier": "2"
  },
  "cost_rule": "Apply buy slippage upward and sell slippage downward. Charge each fee on its respective slipped trade notional. Divide net per ETH by initial price risk. Also report zero cost, double fee and slippage, and target-first sensitivity at base costs. No funding or leverage in the spot trades.",
  "outputs_rule": "Report development, holdout and signal years, including trade counts, net and mean R, drawdown in closed-trade R, and trigger, pairing and exit coverage. Select first holdout completed example in each class in signal-time order: accepted positive R, accepted nonpositive R, rejected. If a class is empty, show its absence. Show real spot H4 and M15 candles with paired H4 basis values where available."
}
